mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Core/Spells: Fixed Righteous Fury stacking exploit
This commit is contained in:
@@ -2970,6 +2970,9 @@ void AuraEffect::HandleModThreat(AuraApplication const* aurApp, uint8 mode, bool
|
||||
return;
|
||||
|
||||
Unit* target = aurApp->GetTarget();
|
||||
if (!target || target->GetTypeId() != TYPEID_PLAYER || (apply && !target->isAlive()))
|
||||
return;
|
||||
|
||||
for (int32 i = 0; i < MAX_SPELL_SCHOOL; ++i)
|
||||
if (GetMiscValue() & (1 << i))
|
||||
ApplyPercentModFloatVar(target->m_threatModifier[i], float(GetAmount()), apply);
|
||||
|
||||
Reference in New Issue
Block a user