Is there any way to check if GetSpellAbilityId() kills a unit? Like for example:
Is that possible to check? (number 3)
Edit would I use something like this?
- A unit casts xxx ability on enemy
- ability of type xxx
- target of abilty being cast dies
- do xxx actions
Is that possible to check? (number 3)
Edit would I use something like this?
JASS:
function Spell_Kill takes nothing returns nothing
local unit Spell_Targ = GetSpellTargetUnit()
call TriggerSleepAction(.5)
if ( GetUnitState(Spell_Targ, UNIT_STATE_LIFE) <= 0 ) then
//Do actions here
endif
set Spell_Targ = null
endfunction