Gaming
 

IsCasting.RegisterForEvent

From WoWWiki

This article is a part of the documentation of the IsCasting function library

Usage:

IsCasting.RegisterForEvent(frame)

Registers a frame for a emulated "SPELLCAST_SUCCESS" event.

The same as frame:RegisterEvent("SPELLCAST_SUCCESS") if it were a real WoW event.

When calling the OnEvent function, arg1 = Spell Name, arg2 = Cast Time, arg3 = Target Name (nil for 'no target').

EX:

IsCasting.RegisterForEvent(MyAddonFrame)

Args:

frame - a WoW xml frame object (table)