mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-05 17:42:24 +00:00
[Cleanup] Remove unnecessary hpr checks in Bot::BotCastHeal() (#3245)
# Notes - These checks are unnecessary as we know it doesn't pass previous checks.
This commit is contained in:
parent
c9221f239c
commit
da2296d416
@ -1003,7 +1003,7 @@ bool Bot::BotCastHeal(Mob* tar, uint8 botLevel, uint8 botClass, BotSpell& botSpe
|
|||||||
isPrimaryHealer = IsGroupHealer();
|
isPrimaryHealer = IsGroupHealer();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hpr < 95 || (tar->IsClient() && (hpr < 95)) || (botClass == BARD)) {
|
if (hpr < 95 || tar->IsClient() || botClass == BARD) {
|
||||||
if (tar->GetClass() == NECROMANCER && hpr >= 40) {
|
if (tar->GetClass() == NECROMANCER && hpr >= 40) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1021,7 +1021,7 @@ bool Bot::BotCastHeal(Mob* tar, uint8 botLevel, uint8 botClass, BotSpell& botSpe
|
|||||||
if (hpr < 35) {
|
if (hpr < 35) {
|
||||||
botSpell = GetBestBotSpellForFastHeal(this);
|
botSpell = GetBestBotSpellForFastHeal(this);
|
||||||
}
|
}
|
||||||
else if (hpr >= 35 && hpr < 70) {
|
else if (hpr < 70) {
|
||||||
if (GetNumberNeedingHealedInGroup(60, false, raid) >= 3) {
|
if (GetNumberNeedingHealedInGroup(60, false, raid) >= 3) {
|
||||||
botSpell = GetBestBotSpellForGroupHeal(this);
|
botSpell = GetBestBotSpellForGroupHeal(this);
|
||||||
}
|
}
|
||||||
@ -1030,7 +1030,7 @@ bool Bot::BotCastHeal(Mob* tar, uint8 botLevel, uint8 botClass, BotSpell& botSpe
|
|||||||
botSpell = GetBestBotSpellForPercentageHeal(this);
|
botSpell = GetBestBotSpellForPercentageHeal(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (hpr >= 70 && hpr < 95) {
|
else if (hpr < 95) {
|
||||||
if (GetNumberNeedingHealedInGroup(80, false, raid) >= 3) {
|
if (GetNumberNeedingHealedInGroup(80, false, raid) >= 3) {
|
||||||
botSpell = GetBestBotSpellForGroupHealOverTime(this);
|
botSpell = GetBestBotSpellForGroupHealOverTime(this);
|
||||||
}
|
}
|
||||||
@ -1075,7 +1075,7 @@ bool Bot::BotCastHeal(Mob* tar, uint8 botLevel, uint8 botClass, BotSpell& botSpe
|
|||||||
else if (hpr < 40) {
|
else if (hpr < 40) {
|
||||||
botSpell = GetBestBotSpellForPercentageHeal(this);
|
botSpell = GetBestBotSpellForPercentageHeal(this);
|
||||||
}
|
}
|
||||||
else if (hpr >= 40 && hpr < 75) {
|
else if (hpr < 75) {
|
||||||
botSpell = GetBestBotSpellForRegularSingleTargetHeal(this);
|
botSpell = GetBestBotSpellForRegularSingleTargetHeal(this);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user