function Trig_Infernal_Func001002 takes nothing returns nothing
call UnitAddAbilityBJ( 'AHbz', GroupPickRandomUnit(GetUnitsOfTypeIdAll('H008')) )
endfunction
function Trig_Infernal_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectAll(GetPlayableMapRect()), function Trig_Infernal_Func001002 )
endfunction
//===========================================================================
function InitTrig_Infernal takes nothing returns nothing
set gg_trg_Infernal = CreateTrigger( )
call TriggerAddAction( gg_trg_Infernal, function Trig_Infernal_Actions )
endfunction
This trigger now gives Blizzard to only random units of the unit type. I want to give the ability for all units. This was originally GUI trigger, then i converted it into a custom text.
call UnitAddAbilityBJ( 'AHbz', GroupPickRandomUnit(GetUnitsOfTypeIdAll('H008')) )
endfunction
function Trig_Infernal_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectAll(GetPlayableMapRect()), function Trig_Infernal_Func001002 )
endfunction
//===========================================================================
function InitTrig_Infernal takes nothing returns nothing
set gg_trg_Infernal = CreateTrigger( )
call TriggerAddAction( gg_trg_Infernal, function Trig_Infernal_Actions )
endfunction
This trigger now gives Blizzard to only random units of the unit type. I want to give the ability for all units. This was originally GUI trigger, then i converted it into a custom text.