Lua FullCastSpellOnTarget

From ArcEmu-Wiki
Jump to: navigation, search

Description

Makes the unit cast a spell with cast time on a target using the spell ID given.

Usage

FullCastSpellOnTarget(Spell_ID, Target)

Spell_IDs

SpellIDs are located in your spells.dbc. You can also get your SpellIDs from wowhead!

Example

 function testillidan_OnCombat(Unit, Event)
 Unit:RegisterEvent("testillidan_OverwhelmingStench", 10000, 0)
 end
 
 function testillidan_OverwhelmingStench(pUnit, Event) 
 pUnit:FullCastSpellOnTarget(6942, pUnit:GetMainTank())
 end
 
 RegisterUnitEvent(44444, 1, "testillidan_OnCombat")
Personal tools