function Mana_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A011'
endfunction
function Trig_Mana_Actions takes nothing returns nothing
local real mana = GetUnitState(GetSpellTargetUnit(),UNIT_STATE_MANA)
call SetUnitState(GetSpellTargetUnit(), UNIT_STATE_MANA, (mana+200.0))
call DisplayTextToPlayer(Player(0),0,0,"The Actions triggered")//to see if it triggered
endfunction
//===========================================================================
function InitTrig_Mana takes nothing returns nothing
set gg_trg_Mana = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ(gg_trg_Mana,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Mana, Condition(function Mana_Conditions))
call TriggerAddAction( gg_trg_Mana, function Trig_Mana_Actions )
endfunction