Name | Type | is_array | initial_value |
Airstriker | unit | Yes | |
boom | effect | No | |
Create | unit | No | |
DeliveryHeli | unit | No | |
Dummy | unit | Yes | |
Heorkills | integer | No | |
Kills | integer | No | |
Oelquellen | integer | Yes | 1 |
Restart | boolean | Yes | |
Spieler | integer | No | |
tagr | location | No | |
Vismod | fogmodifier | Yes |
function Trig_Sheepthrow_FX_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A009' ) ) then
return false
endif
return true
endfunction
function Trig_Sheepthrow_FX_Actions takes nothing returns nothing
endfunction
//===========================================================================
function InitTrig_Sheepthrow_FX takes nothing returns nothing
set gg_trg_Sheepthrow_FX = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sheepthrow_FX, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Sheepthrow_FX, Condition( function Trig_Sheepthrow_FX_Conditions ) )
call TriggerAddAction( gg_trg_Sheepthrow_FX, function Trig_Sheepthrow_FX_Actions )
endfunction
function Trig_Sheeppickup_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A008' ) ) then
return false
endif
return true
endfunction
function Trig_Sheeppickup_Actions takes nothing returns nothing
local unit sheep
local unit caster
set sheep = GetSpellTargetUnit()
set caster = GetSpellAbilityUnit()
call PolledWait ( 0.10 )
call RemoveUnit( sheep )
call UnitRemoveAbilityBJ( 'A008', caster )
call UnitAddAbilityBJ( 'A009', caster )
call UnitAddAbilityBJ( 'A00A', caster )
endfunction
//===========================================================================
function InitTrig_Sheeppickup takes nothing returns nothing
set gg_trg_Sheeppickup = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sheeppickup, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Sheeppickup, Condition( function Trig_Sheeppickup_Conditions ) )
call TriggerAddAction( gg_trg_Sheeppickup, function Trig_Sheeppickup_Actions )
endfunction
function Trig_Sheepthrow_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A009' ) ) then
return false
endif
return true
endfunction
function Trig_Sheepthrow_Actions takes nothing returns nothing
local unit caster
local location target
local effect sheepboom
set caster = GetSpellAbilityUnit()
set target = GetSpellTargetLoc()
call PolledWait( 0.15 )
call AddSpecialEffectLocBJ( target, "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
set sheepboom = GetLastCreatedEffectBJ()
call UnitDamagePointLoc( caster, 0, 150.00, target, 25.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call UnitRemoveAbilityBJ( 'A009', caster )
call UnitAddAbilityBJ( 'A008', caster )
call UnitRemoveAbilityBJ( 'A00A', caster )
call TriggerSleepAction( 1.00 )
call DestroyEffectBJ( sheepboom )
endfunction
//===========================================================================
function InitTrig_Sheepthrow takes nothing returns nothing
set gg_trg_Sheepthrow = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sheepthrow, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Sheepthrow, Condition( function Trig_Sheepthrow_Conditions ) )
call TriggerAddAction( gg_trg_Sheepthrow, function Trig_Sheepthrow_Actions )
endfunction