Lua GetManaPct

From ArcEmu-Wiki
Jump to: navigation, search

Description

Used to find the percent of mana the target has at the time it is called. Will return a numeric value and can be used on units and players.

Usage

Unit:GetManaPct()
player:GetManaPct()

Example

function NPCScript(Unit)
    if Unit:GetManaPct() >= 50 then
       Unit:CastSpellOnTarget(5)
    end
end
Personal tools