Name | Type | is_array | initial_value |
end | location | No | |
GS_Temp_Point | location | No | |
Income | integer | Yes | |
jumper | unit | No | |
jumperposition | location | No | |
mapcenter | location | No | |
se | effect | No | |
start | location | No | |
temppoint | location | No |
function Trig_damage_Copy_Func001C takes nothing returns boolean
if ( ( GetSpellAbilityId() == 'A000' ) ) then
return true
endif
if ( ( GetSpellAbilityId() == 'A004' ) ) then
return true
endif
if ( ( GetSpellAbilityId() == 'A003' ) ) then
return true
endif
return false
endfunction
function Trig_damage_Copy_Conditions takes nothing returns boolean
if ( not Trig_damage_Copy_Func001C() ) then
return false
endif
return true
endfunction
function Trig_damage_Copy_Actions takes nothing returns nothing
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetTriggerUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
set udg_se = GetLastCreatedEffectBJ()
call TriggerSleepAction( 1.00 )
call DestroyEffectBJ( udg_se )
endfunction
//===========================================================================
function InitTrig_damage_Copy takes nothing returns nothing
set gg_trg_damage_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_damage_Copy, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_damage_Copy, Condition( function Trig_damage_Copy_Conditions ) )
call TriggerAddAction( gg_trg_damage_Copy, function Trig_damage_Copy_Actions )
endfunction