- Joined
- Sep 3, 2006
- Messages
- 940
Here it is:
PS: SPELL_ID = 'A000'
The unit won't deal damage when it is initiated by this trigger:
What's wrong with it? (It actually works on occation, but not often. Actually only when the spell is cast very fast many times.)
JASS:
function GrappleDamageFunction takes nothing returns nothing
local unit c = GetTriggerUnit()
local unit t = GetSpellTargetUnit()
call UnitDamageTargetBJ(c, t, (50.00 * (I2R(GetUnitAbilityLevelSwapped(SPELL_ID, c)))), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL)
//Leak Fixes
set c = null
set t = null
endfunction
The unit won't deal damage when it is initiated by this trigger:
-
GrappleInit
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Grapple
-
Actions
- Custom script: call GrappleDamageFunction()
-
Events
What's wrong with it? (It actually works on occation, but not often. Actually only when the spell is cast very fast many times.)