Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
- index 95d5f38..87e60c7 100644
- --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
- +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
- @@ -5623,13 +5577,34 @@ void AuraEffect::HandleModRating(AuraApplication const *aurApp, uint8 mode, bool
- return;
- Unit *target = aurApp->GetTarget();
- + uint32 amount = GetAmount();
- if (target->GetTypeId() != TYPEID_PLAYER)
- return;
- + switch (GetId())
- + {
- + case 91041: //Heart's judgement
- + if (target->HasAura(91027))
- + {
- + Aura* pAura = target->GetAura(91027);
- + uint8 uiStacks = pAura->GetStackAmount();
- + amount = amount * uiStacks;
- + }
- + break;
- + case 92328: //Heart's judgement (h)
- + if (target->HasAura(92325))
- + {
- + Aura* pAura = target->GetAura(92325);
- + uint8 uiStacks = pAura->GetStackAmount();
- + amount = amount * uiStacks;
- + }
- + break;
- + }
- +
- for (uint32 rating = 0; rating < MAX_COMBAT_RATING; ++rating)
- if (GetMiscValue() & (1 << rating))
- - target->ToPlayer()->ApplyRatingMod(CombatRating(rating), GetAmount(), apply);
- + target->ToPlayer()->ApplyRatingMod(CombatRating(rating), amount, apply);
- }
- void AuraEffect::HandleModRatingFromStat(AuraApplication const *aurApp, uint8 mode, bool apply) const
Advertisement
Add Comment
Please, Sign In to add comment