Pelf

Pelf improved freeze 1

Apr 23rd, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.04 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 13a378c..4daf55c 100644
  3. --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
  4. +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
  5. @@ -4347,6 +4347,24 @@ void AuraEffect::HandleAuraModRoot(AuraApplication const *aurApp, uint8 mode, bo
  6.                      target->ToPlayer()->setInWorgenForm();
  7.                  break;
  8.              }
  9. +           case 33395: //Freeze, Water Elemental
  10. +           {
  11. +               Unit* pPlayer = GetCaster()->GetOwner();
  12. +               uint32 uiChance;
  13. +               if (pPlayer && pPlayer->GetTypeId() == TYPEID_PLAYER)
  14. +               {
  15. +                   if (pPlayer->HasAura(86259))
  16. +                       uiChance = 33;
  17. +                   else if (pPlayer->HasAura(86260))
  18. +                       uiChance = 66;
  19. +                   else if (pPlayer->HasAura(86314))
  20. +                       uiChance = 100;
  21. +                   if (roll_chance_i(uiChance))
  22. +                       if (Aura* aura = pPlayer->AddAura(44544, pPlayer))
  23. +                           aura->SetStackAmount(2);
  24. +               }
  25. +               break;
  26. +           }
  27.              default:
  28.                  break;
  29.          }
Add Comment
Please, Sign In to add comment