Pelf

Pelf heart of ignacious

Apr 21st, 2012
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.37 KB | None | 0 0
  1. diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
  2. index 95d5f38..87e60c7 100644
  3. --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
  4. +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
  5. @@ -5623,13 +5577,34 @@ void AuraEffect::HandleModRating(AuraApplication const *aurApp, uint8 mode, bool
  6.          return;
  7.  
  8.      Unit *target = aurApp->GetTarget();
  9. +   uint32 amount =  GetAmount();
  10.  
  11.      if (target->GetTypeId() != TYPEID_PLAYER)
  12.          return;
  13.  
  14. +   switch (GetId())
  15. +   {
  16. +   case 91041:     //Heart's judgement
  17. +       if (target->HasAura(91027))
  18. +       {
  19. +           Aura* pAura = target->GetAura(91027);
  20. +           uint8 uiStacks = pAura->GetStackAmount();
  21. +           amount = amount * uiStacks;
  22. +       }
  23. +       break;
  24. +   case 92328:     //Heart's judgement (h)
  25. +       if (target->HasAura(92325))
  26. +       {
  27. +           Aura* pAura = target->GetAura(92325);
  28. +           uint8 uiStacks = pAura->GetStackAmount();
  29. +           amount = amount * uiStacks;
  30. +       }
  31. +       break;
  32. +   }
  33. +
  34.      for (uint32 rating = 0; rating < MAX_COMBAT_RATING; ++rating)
  35.          if (GetMiscValue() & (1 << rating))
  36. -            target->ToPlayer()->ApplyRatingMod(CombatRating(rating), GetAmount(), apply);
  37. +            target->ToPlayer()->ApplyRatingMod(CombatRating(rating), amount, apply);
  38.  }
  39.  
  40.  void AuraEffect::HandleModRatingFromStat(AuraApplication const *aurApp, uint8 mode, bool apply) const
Advertisement
Add Comment
Please, Sign In to add comment