function Trig_MetaFix_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00T' ) )
then return false
endif
return true
endfunction
function Trig_MetaFix_Actions takes nothing returns nothing
call UnitAddAbility( GetTriggerUnit(),'A00R' )
call UnitAddAbility( GetTriggerUnit(),'A009' )
call UnitMakeAbilityPermanent( GetTriggerUnit(),true,'A00R')
endfunction
//===========================================================================
function InitTrig_MetaFix takes nothing returns nothing
set gg_trg_MetaFix = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_MetaFix, EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_MetaFix, Condition( function Trig_MetaFix_Conditions ) )
call TriggerAddAction( gg_trg_MetaFix, function Trig_MetaFix_Actions )
endfunction