- Joined
- Jun 26, 2007
- Messages
- 14
JASS:
function Trig_Snow_Actions takes nothing returns nothing
local unit u=GetEnumUnit()
local real x=GetUnitX(u)
local real y=GetUnitY(u)
local integer t=GetTerrainType(x,y)
if(t==udg_TerrainKill)then
if ( GetUnitTypeId(u) == 'Edem' ) then
call AddSpecialEffectTargetUnitBJ( "origin", u, "Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl" )
call KillUnit(u)
endif
endif
set u=null
endfunction
function InitTrig_Snow takes nothing returns nothing
set gg_trg_Snow = CreateTrigger( )
call TriggerRegisterTimerEvent(gg_trg_Snow, 0.01, true)
call TriggerAddAction( gg_trg_Snow, function Trig_Snow_Actions )
endfunction
udg_TerrainKill is set to the tile Ywmb in a seperate trigger.
I just cant find anything wrong, maybe one of you can?