- Joined
- Oct 11, 2012
- Messages
- 711
Hey all. Help with the following trigger please, thanks.
I cannot figure out why it does not work....
Edit:
It seems like that you cannot check the buff of a dying unit....
JASS:
function Actions takes nothing returns nothing
if GetUnitAbilityLevel(GetDyingUnit(), 'Besh') > 0 then
call DisplayTextToPlayer( Player(0), 0, 0, "test" )
endif
endfunction
function InitTrig_u takes nothing returns nothing
set gg_trg_u = CreateTrigger()
call TriggerRegisterUnitEvent( gg_trg_u, gg_unit_nfsh_0001, EVENT_UNIT_DEATH )
call TriggerAddAction(gg_trg_u, function Actions)
endfunction
I cannot figure out why it does not work....
Edit:
It seems like that you cannot check the buff of a dying unit....
Last edited by a moderator: