yea
change
PHP:doPlayerAddSpentMana(p.cid, manaspent) doTargetCombatMana(0, p.cid, -manaspent, -manaspent, CONST_ME_NONE)
to
PHP:if getPlayerMana(p.cid) == getPlayerMaxMana(p.cid) then doPlayerAddSpentMana(p.cid, manaspent) doTargetCombatMana(0, p.cid, -manaspent, -manaspent, CONST_ME_NONE) end
end
manaspent = getPlayerMana(p.cid)
doPlayerAddSpentMana(p.cid, manaspent)
doTargetCombatMana(0, p.cid, -manaspent, -manaspent, CONST_ME_NONE)
end
manaspent = getPlayerMana(p.cid)
doPlayerAddSpentMana(p.cid, manaspent)
doTargetCombatMana(0, p.cid, -manaspent, -manaspent, CONST_ME_NONE)