mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Merge pull request #1663 from gacuna89/patch-3
Fix: Prevent priests in Spirit of Redemption form from using mana
This commit is contained in:
commit
c503199422
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user