Hey there, I saved my map the other day, and, without modifying this trigger it said Error "Expected a name" in the error console. It seemed to work properly like this before, so can you give me a hand on this?
-
ToF
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
((Killing unit) has buff Torment of the Fallen ) Equal to True
-
-
Actions
-
Custom script: local unit Killer = GetKillingUnitBJ()
-
Custom script: local unit Killed = GetDyingUnit()
-
Custom script: local effect DeathEffect = AddSpecialEffectTargetUnitBJ( "chest", Killer, "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
-
Custom script: call UnitDamageTargetBJ( Killed, Killer, ( GetUnitLifePercent(Killer) - ( GetUnitLifePercent(Killed)/100*3.00 * I2R(GetUnitAbilityLevelSwapped('A023', gg_unit_U00I_0112)) ) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL)
-
Wait 1.00 seconds
-
Custom script: call DestroyEffect(DeathEffect)
-
Custom script: set Killed = null
-
Custom script: set Killer = null
-
-