Lua SetMana

From ArcEmu-Wiki
Jump to: navigation, search

Description

Sets the targeted unit's mana to a number. (This is not shown in the unit's mana bar)

Example

local function SetMana(pUnit)
	local Mana = pUnit:GetMana();
	if(Mana>=1000) then
		pUnit:SendChatMessage(12, 0, "I have more than 1000 mana now!");
		pUnit:SetMana(999);
	end
end


Also see Lua_GetMana()

Personal tools