- Joined
- Feb 14, 2009
- Messages
- 316
Is there any way to make Barrage to fire lightning effects like Chain Lightning - Secondary instead of rockets?
Using the lightning effect option in the ability doesn't help.
This does not help either:
Using the lightning effect option in the ability doesn't help.
This does not help either:
JASS:
function Trig_barrage_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A000' ) ) then
return false
endif
return true
endfunction
function Trig_barrage_Actions takes nothing returns nothing
local lightning lght
call AddLightningLoc( "CLSB", GetUnitLoc(GetTriggerUnit()), GetSpellTargetLoc() )
set lght = GetLastCreatedLightningBJ()
call PolledWait(0.20)
call DestroyLightning(lght)
endfunction
//===========================================================================
function InitTrig_barrage takes nothing returns nothing
set gg_trg_barrage = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_barrage, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_barrage, Condition( function Trig_barrage_Conditions ) )
call TriggerAddAction( gg_trg_barrage, function Trig_barrage_Actions )
endfunction