Skip to content

Commit

Permalink
-Item cheat fix: Fixed proper detection of giving of mana potions/dri…
Browse files Browse the repository at this point in the history
…nks.
  • Loading branch information
mostlikely4r committed Sep 25, 2024
1 parent 97b5cc2 commit 6f42aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playerbot/PlayerbotFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3240,7 +3240,7 @@ void PlayerbotFactory::InitPotions()
{
uint32 effect = effects[i];

if (effect = SPELL_EFFECT_ENERGIZE && !bot->HasMana()) //Do not give manapots to non-mana users.
if (effect == SPELL_EFFECT_ENERGIZE && !bot->HasMana()) //Do not give manapots to non-mana users.
continue;

FindPotionVisitor visitor(bot, effect);
Expand Down Expand Up @@ -3269,7 +3269,7 @@ void PlayerbotFactory::InitFood()
{
uint32 category = categories[i];

if (category = 59 && !bot->HasMana()) //Do not give drinks to non-mana users.
if (category == 59 && !bot->HasMana()) //Do not give drinks to non-mana users.
continue;

FindFoodVisitor visitor(bot, category);
Expand Down

0 comments on commit 6f42aa9

Please sign in to comment.