mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
fix the fix
This commit is contained in:
parent
481c2494bb
commit
bfa3172ea4
@ -4407,9 +4407,9 @@ Item* PlayerbotAI::FindOilFor(Item* weapon) const
|
||||
{
|
||||
for (const auto& id : uPriorizedWizardOilIds)
|
||||
{
|
||||
oil = FindConsumable(uPriorizedWizardOilIds[id]);
|
||||
oil = FindConsumable(id);
|
||||
if (!oil)
|
||||
oil = FindConsumable(uPriorizedManaOilIds[id]);
|
||||
oil = FindConsumable(id);
|
||||
if (oil)
|
||||
return oil;
|
||||
}
|
||||
@ -4418,9 +4418,9 @@ Item* PlayerbotAI::FindOilFor(Item* weapon) const
|
||||
{
|
||||
for (const auto& id : uPriorizedManaOilIds)
|
||||
{
|
||||
oil = FindConsumable(uPriorizedManaOilIds[id]);
|
||||
oil = FindConsumable(id);
|
||||
if (!oil)
|
||||
oil = FindConsumable(uPriorizedWizardOilIds[id]);
|
||||
oil = FindConsumable(id);
|
||||
if (oil)
|
||||
return oil;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user