Stomp
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to (==) Electro Magetic Pulse (guardian)
Actions
Set TempPoint = (Position of (Triggering unit))
Set TempGroup = (Units within 450.00 of TempPoint matching...
set p = GetConvertedPlayerId(GetTriggerPlayer())
call TriggerAddAction( gg_trg_Player_Exceeds_Max, function PlayerExceedsMax(p) )
This will not work, TriggerAddAction can't get any argument, you'll need to pass it through a global.
To make this spell to work, change:
private function H2I takes handle h returns integer
return h
return 0
endfunction
to
private function H2I takes handle h returns integer
return GetHandleId(h)
endfunction