WarLuvr3393
Hmmm...too many things to play (WoW, COD4, WC3)
- Reaction score
- 54
JASS:
function FB_Spell_Check takes nothing returns boolean
return GetSpellAbilityId() == 039;A005039;
endfunction
function FB_Spell_Effect takes nothing returns nothing
local unit caster = GetTriggerUnit()
local unit dummy
local location l = GetUnitLoc(caster)
local player p = GetOwningPlayer(caster)
local integer ds = 039;A006039;
local integer i = 0
local real ang = 0
local location pj = PolarProjectionBJ(l, 100, ang)
loop
exitwhen i > 3
set dummy = CreateUnitAtLoc(p, 039;h00B039;, l, 0)
call UnitAddAbility(dummy, ds)
call IssuePointOrderLoc(dummy, "breathoffire", pj)
set ang = ang + 90
set pj = PolarProjectionBJ(l, 100, ang)
set i = i + 1
endloop
call RemoveLocation(l)
call RemoveLocation(pj)
set l = null
set pj = null
set caster = null
set dummy = null
endfunction
//===========================================================================
function InitTrig_Fire_Blast takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ( t, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( t, Condition( function FB_Spell_Check ) )
call TriggerAddAction( t, function FB_Spell_Effect )
endfunction
Yes/no?