From 6f42aa9913e46f9afb3fdd6473bca1c718caf966 Mon Sep 17 00:00:00 2001 From: mostlikely4r Date: Wed, 25 Sep 2024 19:46:23 +0200 Subject: [PATCH] -Item cheat fix: Fixed proper detection of giving of mana potions/drinks. --- playerbot/PlayerbotFactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playerbot/PlayerbotFactory.cpp b/playerbot/PlayerbotFactory.cpp index 108ff90ca..f1ae47466 100644 --- a/playerbot/PlayerbotFactory.cpp +++ b/playerbot/PlayerbotFactory.cpp @@ -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); @@ -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);