initial commit
This commit is contained in:
23
aghanim_singleplayer/scripts/vscripts/abilities/ascension_attack_speed.lua
Executable file
23
aghanim_singleplayer/scripts/vscripts/abilities/ascension_attack_speed.lua
Executable file
@@ -0,0 +1,23 @@
|
||||
ascension_attack_speed = class( {} )
|
||||
|
||||
LinkLuaModifier( "modifier_ascension_attack_speed", "modifiers/modifier_ascension_attack_speed", LUA_MODIFIER_MOTION_NONE )
|
||||
|
||||
-----------------------------------------------------------------------------------------
|
||||
|
||||
function ascension_attack_speed:Precache( context )
|
||||
PrecacheResource( "particle", "particles/items2_fx/mask_of_madness.vpcf", context )
|
||||
end
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
function ascension_attack_speed:OnSpellStart()
|
||||
|
||||
if not IsServer() then
|
||||
return
|
||||
end
|
||||
|
||||
local flDuration = self:GetSpecialValueFor( "duration" )
|
||||
self:GetCaster():AddNewModifier( self:GetCaster(), self, "modifier_ascension_attack_speed", { duration = flDuration } )
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user