public override bool NeedRest(WowPlayer player) { if (player.IsDead) { return false; } if (player.IsInCombat()) { return false; } if (player.HasBuff("Resurrection Sickness")) { return true; } if (player.MpPct < RestMana && !player.IsCasting() && !player.HasBuff("Drink")) { Output.Instance.Script("Resting for mana", this); return true; } if (player.MpPct < MinMPPct && player.HasBuff("Drink")) { Output.Instance.Script("Resting to continue drinking", this); return true; } if (player.HpPct < RestHp && !player.IsCasting() && !player.HasBuff("Drink")) { Output.Instance.Script("Resting for health", this); return true; } return false; }