Name | Type | is_array | initial_value |
BSCaster | unit | Yes | |
BSCastLoc | location | Yes | |
BSDamageReal | real | Yes | |
BSTarget | unit | Yes | |
BSTargLoc | location | Yes | |
Creep_Positions | location | Yes | |
Creep_Types | unitcode | Yes | |
Dispelled | unit | Yes | |
DTCaster | unit | Yes | |
DTTarget | unit | Yes | |
DTTargLoc | location | Yes | |
ENPoint | location | Yes | |
Hostile_Revive_Time | real | No | |
LoopCreep | integer | No | |
LSPoint | location | Yes | |
LVAllies | group | No | |
LVEnemies | group | No | |
LVPoint | location | No | |
ManaStealed | unit | Yes | |
ManaStealer | unit | Yes | |
ManaStealPoint | location | Yes | |
ManaStrikeBurn | real | Yes | |
ManaStrikeDmg | real | Yes | |
ManaStrikeGroup | group | Yes | |
ManaStrikePoint | location | Yes | |
msUnitGroup | group | No | |
RCaster | unit | Yes | |
RCastLoc | location | Yes | |
RTarget | unit | Yes | |
RTargLoc | location | Yes | |
SSChance | integer | Yes | |
SSClonesGroup | group | Yes | |
SSPoint | location | Yes | |
TBCaster | unit | No | |
TBCastLoc | location | No | |
TBTarget | unit | No | |
TBTargLoc | location | No | |
WChargePoint | location | Yes | |
WChargeUnit | unit | Yes | |
Windcharge | group | Yes |
function Trig_Revive_Creeps_Actions takes nothing returns nothing
local integer CUSTOM
set CUSTOM = GetUnitUserData(GetDyingUnit())
call TriggerSleepAction( udg_Hostile_Revive_Time )
call CreateNUnitsAtLoc( 1, udg_Creep_Types[CUSTOM], Player(PLAYER_NEUTRAL_AGGRESSIVE), udg_Creep_Positions[CUSTOM], bj_UNIT_FACING )
call SetUnitUserData( GetLastCreatedUnit(), CUSTOM )
endfunction
//===========================================================================
function InitTrig_Revive_Creeps takes nothing returns nothing
set gg_trg_Revive_Creeps = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Revive_Creeps, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Revive_Creeps, function Trig_Revive_Creeps_Actions )
endfunction