Lua AddAura

From ArcEmu-Wiki
Jump to: navigation, search

Contents

Description

This method adds the specified aura to the unit given for the duration given (in miliseconds).

Parameters

:AddAura(SPELLID, DURATION)

Usage/Example

function BadGuy_OnCombat(pUnit)
	for _, v in ipairs(pUnit:GetAITargets())
		if v and not v:IsDead() then
			v:AddAura(28531, 60000)
		end
	end
end

Notes

Using 0 or less as the duration argument will make the aura have no time limit. Using -1 as time limit will make the aura stay after relog while using 0 or less than -1 wont.

Personal tools