Esempio n. 1
0
        protected virtual bool ShouldIgnorePain()
        {
            if (!Skills.Barbarian.IgnorePain.CanCast())
            {
                return(false);
            }

            if (Legendary.PrideOfCassius.IsEquipped && Target != null)
            {
                return(true);
            }

            //if (Player.CurrentHealthPct < 0.90)
            //    return true;

            if (Player.IsIncapacitated)
            {
                Core.Logger.Error(LogCategory.Routine,
                                  $" [Ignore Pain] -  Incapacitated.");
                return(true);
            }

            if (Runes.Barbarian.MobRule.IsActive && Targeting.AnyPlayer(p => p.HitPointsPct < 0.50 && p.Distance < 50f))
            {
                Core.Logger.Error(LogCategory.Routine,
                                  $" [Ignore Pain] -  Mob Rule.");
                return(true);
            }

            return(false);
        }