public static bool IsReadyToCast(this FightingObjectView instance, SpellSlotIndex slot) { var eventHandler = new CastSpellEventHandler(instance.GetEventHandler <auy>()); if (eventHandler != null && eventHandler.IsReady((byte)slot)) { return(true); } return(false); }
public bool IsReadyToCast(CharacterSpellSlot slot) { //NOTE: GetEventHandler Generic param. 0 is internal type of CastSpellEventHandler CastSpellEventHandler eventHandler = GetEventHandler <awp>(); if (eventHandler && eventHandler.IsReady((byte)slot)) { return(true); } return(false); }
public static bool IsReadyToCast(this FightingObject obj, CharacterSpellSlot slot) { //NOTE: GetEventHandler Generic param. 0 is internal type of CastSpellEventHandler CastSpellEventHandler eventHandler = obj.GetEventHandler <ayt>(); if (eventHandler && eventHandler.IsReady((byte)slot)) { return(true); } return(false); }