private static async Task <bool> Refresh() { if (!EdwardSettingsModel.Instance.UseRefresh || !PartyManager.IsInParty || !Target.HealthCheck(false) || !Target.TimeToDeathCheck() || ActionManager.LastSpell == Spells.Tactician || CombatHelper.LastSpell == Spells.Tactician) { return(false); } if (PartyMembers.Count(pm => pm.IsCaster() && pm.IsAlive && pm.CurrentManaPercent <= EdwardSettingsModel.Instance.RefreshMpPct) >= EdwardSettingsModel.Instance.RefreshMemberCount) { return(await Spells.Refresh.Use(Me, true)); } return(await Spells.Refresh.Use(Me, await KefkaEnmityManager.TargetingMeCount() > 0)); }
private static async Task <bool> Refresh() { if (!BarretSettingsModel.Instance.UseRefresh || ActionManager.LastSpell == Spells.Tactician || CombatHelper.LastSpell == Spells.Tactician) { return(false); } if (PartyManager.IsInParty && PartyMembers.Count(pm => pm.IsHealer() && pm.IsAlive && pm.CurrentManaPercent <= BarretSettingsModel.Instance.RefreshMpPct) >= BarretSettingsModel.Instance.RefreshMemberCount) { return(await Spells.Refresh.Use(Me, Target.HealthCheck(false) && Target.TimeToDeathCheck())); } return(await Spells.Refresh.Use(Me, Target.HealthCheck(false) && Target.TimeToDeathCheck() && GameObjectManager.Attackers.Any(a => a.TargetCharacter == Me))); }
private static async Task <bool> Tactician() { if (!EdwardSettingsModel.Instance.UseTactician || !PartyManager.IsInParty || !Target.HealthCheck(false) || !Target.TimeToDeathCheck() || ActionManager.LastSpell == Spells.Refresh || CombatHelper.LastSpell == Spells.Refresh) { return(false); } if (PartyMembers.Count(pm => pm.IsAlive && pm.IsPhysical() && pm.CurrentTPPercent <= EdwardSettingsModel.Instance.TacticianTpPct) >= EdwardSettingsModel.Instance.TacticianMemberCount) { return(await Spells.Tactician.Use(Me, true)); } return(await Spells.Tactician.Use(Me, true)); }