function Trig_Tsuuten_Kyaku_Conditions takes nothing returns boolean
return ( GetSpellAbilityId() == 'A00M' )
endfunction
function Trig_Tsuuten_Kyaku_Actions takes nothing returns nothing
local real x = GetUnitX(GetTriggerUnit())
local real y = GetUnitY(GetTriggerUnit())
local terraindeformation td
local unit te
set td = TerrainDeformCrater( x, y, 600, 150, 300, true )
set te = CreateUnit(GetOwningPlayer(GetTriggerUnit()), 'h013', x, y, 0 )
call UnitApplyTimedLife(te, 'BTLF', 3)
call TerrainDeformStop(td, 3000)
endfunction
//===========================================================================
function InitTrig_Tsuuten_Kyaku takes nothing returns nothing
set gg_trg_Tsuuten_Kyaku = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Tsuuten_Kyaku, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Tsuuten_Kyaku, Condition( function Trig_Tsuuten_Kyaku_Conditions ) )
call TriggerAddAction( gg_trg_Tsuuten_Kyaku, function Trig_Tsuuten_Kyaku_Actions )
endfunction