Lua GetTauntedBy

From ArcEmu-Wiki
Jump to: navigation, search

Description

If the unit is taunted by a spell cast by a player or opposing unit, this command will select that player or unit.

Usage

Unit:GetTauntedBy()


Example

function NPC_Script(Unit, Event)
local target = Unit:GetTantedBy()
 if plr ~= nil then
  Unit:CastSpellOnTarget(5, target)
end
end
Personal tools