rodead
Active Member
- Reaction score
- 42
whats wrong with this trigger :S
it says it is missing act
and canot convert integer to player...
thanks in advanced and +rep
it says it is missing act
and canot convert integer to player...
JASS:
scope Iceclap initializer init
private function rodead takes nothing returns boolean
return GetSpellAbilityId() == 039;A005039;
endfunction
private function rodead2 takes nothing returns nothing
local integer id = GetPlayerId(GetOwningPlayer(GetTriggerUnit()))
local unit caster = GetTriggerUnit()
local real dx = GetUnitX(caster)
local real dy = GetUnitY(caster)
local unit dummy = CreateUnit(id, 039;h004039;, dx, dy, 0.00)
local location loc
set loc = Location (dx,dy)
call IssuePointOrder(dummy,"blizzard",GetLocationX(loc),GetLocationY(loc))
call UnitApplyTimedLife(dummy, 039;BTLF039;, 5.00)
call RemoveLocation(loc)
set caster = null
set loc = null
set dummy = null
endfunction
//===========================================================================
private function init takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(t, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddAction(t, function rodead2 )
call TriggerAddCondition(t, Condition(function rodead))
endfunction
endscope
thanks in advanced and +rep