| -------------------------------------------------------------------------------------
| SUB: Cast Mana
| -------------------------------------------------------------------------------------
Sub CastMana
/if (${Me.Invis}) /return
/declare i int local
/for i 1 to ${Buffs.Size}
| Check and Cast mana type spells/aas/items - Canni/Paragon/Harvest - prevent toon from using before rez after zoning for 2 min
/if (${Buffs[${i}].Arg[2,|].Equal[Mana]} && (!${Me.Buff[Revival Sickness].ID} && !${!JustZoned})) {
/if (${Me.PctMana}<=${Buffs[${i}].Arg[3,|]} && ${Me.PctHPs}>${Buffs[${i}].Arg[4,|]}) {
/if (${DebugBuffs}) /echo DEBUGBUFFS Canni/Paragon/Harvest
/call CastWhat "${Buffs[${i}].Arg[1,|]}" ${Me.ID} Buffs
/if (${Macro.Return.Equal[CAST_SUCCESS]}) /echo Casting >> ${Buffs[${i}].Arg[1,|]} << for mana
}
}
/next i
/return