Merge pull request #1663 from gacuna89/patch-3

Fix: Prevent priests in Spirit of Redemption form from using mana
This commit is contained in:
kadeshar
2025-10-02 20:26:10 +02:00
committed by GitHub

View File

@@ -4,7 +4,6 @@
*/
#include "StatsValues.h"
#include "Playerbots.h"
#include "ServerFacade.h"
@@ -120,6 +119,10 @@ bool HasManaValue::Calculate()
if (!target)
return false;
constexpr uint32 PRIEST_SPIRIT_OF_REDEMPTION_SPELL_ID = 20711u;
if (target->HasAura(PRIEST_SPIRIT_OF_REDEMPTION_SPELL_ID))
return false;
return target->GetPower(POWER_MANA);
}