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
commit c503199422
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);
}