mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 13:16:39 +00:00
Fix BotMeditate to med at proper percentages
This commit is contained in:
+15
-18
@@ -1823,24 +1823,21 @@ void Bot::SpellProcess() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Bot::BotMeditate(bool is_sitting) {
|
void Bot::BotMeditate(bool is_sitting) {
|
||||||
if (
|
bool needs_to_med =
|
||||||
GetManaRatio() < GetSitManaPct() ||
|
(!IsEngaged() && (GetManaRatio() < 100 || GetHPRatio() < 100)) ||
|
||||||
(GetHPRatio() < GetSitHPPct() && GetLevel() < GetStopMeleeLevel())
|
(GetMedInCombat() && !HasTargetReflection() &&
|
||||||
) {
|
(
|
||||||
if (
|
GetManaRatio() < GetSitManaPct() ||
|
||||||
(
|
(GetHPRatio() < GetSitHPPct() && GetLevel() >= GetStopMeleeLevel())
|
||||||
!IsEngaged() ||
|
)
|
||||||
(IsEngaged() && GetMedInCombat() && !HasTargetReflection())
|
);
|
||||||
) &&
|
|
||||||
!is_sitting
|
if (needs_to_med && !is_sitting) {
|
||||||
) {
|
Sit();
|
||||||
Sit();
|
}
|
||||||
}
|
else if (!needs_to_med && is_sitting) {
|
||||||
} else {
|
Stand();
|
||||||
if (is_sitting) {
|
}
|
||||||
Stand();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Bot::BotRangedAttack(Mob* other, bool can_double_attack) {
|
bool Bot::BotRangedAttack(Mob* other, bool can_double_attack) {
|
||||||
|
|||||||
Reference in New Issue
Block a user