function Trig_Raging_Flame_Conditions takes nothing returns boolean
return ( GetSpellAbilityId() == 'A008' )
endfunction
function Trig_Raging_Flame_Actions takes nothing returns nothing
local location p
local unit u
if (GetSpellTargetUnit() == null) then
set p = GetSpellTargetLoc()
set u = CreateUnitAtLoc(Player(3),'h002',p,bj_UNIT_FACING)
call UnitApplyTimedLife(u,'BTLF',4.0)
call UnitAddAbility(u,'A009')
call IssueImmediateOrder(u,"stomp")
call AddSpecialEffectLoc("Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl",p)
call DestroyEffect(GetLastCreatedEffectBJ())
else
endif
if ( GetTriggerUnit() == GetSpellTargetUnit()) then
set p = GetUnitLoc(GetTriggerUnit())
set u = CreateUnitAtLoc(Player(3),'h002',p,bj_UNIT_FACING)
call UnitApplyTimedLife(u,'BTLF',4.0)
call UnitAddAbility(u,'A007')
call IssueImmediateOrder(u,"fanofknives")
else
if (not(GetSpellTargetUnit() == null)) then
set p = GetUnitLoc(GetSpellTargetUnit())
set u = CreateUnitAtLoc(Player(3),'h002',p,bj_UNIT_FACING)
call UnitApplyTimedLife(u,'BTLF',4.0)
call UnitAddAbility(u,'A00A')
call IssueTargetOrder(u,"lightningshield",GetSpellTargetUnit())
else
endif
endif
call RemoveLocation(p)
endfunction
//===========================================================================
function InitTrig_Raging_Flame takes nothing returns nothing
set gg_trg_Raging_Flame = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Raging_Flame, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Raging_Flame, Condition( function Trig_Raging_Flame_Conditions ) )
call TriggerAddAction( gg_trg_Raging_Flame, function Trig_Raging_Flame_Actions )
endfunction