public async override Task <bool> PreCombatBuff() { if (!StyxWoW.Me.IsAlive) { return(true); } if (PaladinSettings.Instance.AutoAttack && StyxWoW.Me.GotTarget && StyxWoW.Me.CurrentTarget.Attackable) { if (StyxWoW.Me.CurrentTarget.Distance <= 30 && StyxWoW.Me.CurrentTarget.InLineOfSight) { if (await MySpells.BladeOfWrathMethod()) { return(true); } if (await MySpells.JudgmentMethod()) { return(true); } return(await MySpells.CrusaderStrikeMethod()); } } if (!Globals.InCombat) { // allow hotkeys out of combat if (await MySpells.HotkeysMethod()) { return(true); } } return(await MySpells.BlessingsMethod()); }
public async override Task <bool> Pull() { if (PaladinSettings.Instance.EnableMovement || PaladinSettings.Instance.EnableFacing) { await MoveToTarget(); } if (!StyxWoW.Me.GotTarget) { return(false); } if (await MySpells.JudgmentMethod()) { return(true); } if (await MySpells.BladeOfWrathMethod()) { return(true); } return(await MySpells.CrusaderStrikeMethod()); }
public async override Task <bool> Combat() { if (Settings.AutoTarget) { AutoTarget(); } if (Settings.EnableMovement || Settings.EnableFacing) { await MoveToTarget(); } Globals.UpdateCombat(); if (!StyxWoW.Me.GotTarget) { return(false); } if (await MySpells.HotkeysMethod()) { return(true); } if (await MySpells.RacialsMethod()) { return(true); } if (await MySpells.TotemStompMethod()) { return(true); } if (Globals.Pvp && PvP.PvPCheck()) { return(true); } if (await MySpells.RebukeMethod()) { return(true); } if (SpellManager.GlobalCooldownLeft.TotalMilliseconds > 200) { return(true); } if (await MySpells.HammerOfJusticeMethod()) { return(true); } if (await MySpells.BlindingLightMethod()) { return(true); } if (await MySpells.RepentanceMethod()) { return(true); } if (await MySpells.HolyWrathMethod()) { return(true); } if (await MySpells.WakeOfAshesMethod()) { return(true); } if (await MySpells.HammerOfReckoningMethod()) { return(true); } if (await MySpells.ExecutionSentenceMethod()) { return(true); } if (await MySpells.JusticarsVengeanceMethod()) { return(true); } if (await MySpells.HandOfHindranceMethod()) { return(true); } if (await MySpells.DivineStormMethod()) { return(true); } if (await MySpells.TemplarsVerdictMethod()) { return(true); } if (await MySpells.ConsecrationMethod()) { return(true); } if (await MySpells.BladeOfWrathMethod()) { return(true); } if (await MySpells.JudgmentMethod()) { return(true); } if (await MySpells.DivineHammerMethod()) { return(true); } if (await MySpells.CrusaderStrikeMethod()) { return(true); } return(false); }