casucristy

ss

Jul 27th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.32 KB | None | 0 0
  1. From 5d57e5b4768ea88d8e335886b4a0c61cad0e3490 Mon Sep 17 00:00:00 2001
  2. From: unknown <cristi@cristis-PC.(none)>
  3. Date: Sat, 28 Jul 2012 01:39:00 +0300
  4. Subject: [PATCH] Fix talent Phantasm - Priest
  5.  
  6. ---
  7.  src/server/game/Spells/Auras/SpellAuras.cpp |   15 +++++++++++++++
  8.  1 file changed, 15 insertions(+)
  9.  
  10. diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp
  11. index 702857f..9306bdb 100755
  12. --- a/src/server/game/Spells/Auras/SpellAuras.cpp
  13. +++ b/src/server/game/Spells/Auras/SpellAuras.cpp
  14. @@ -1319,6 +1319,21 @@ void Aura::HandleAuraSpecificMods(AuraApplication const* aurApp, Unit* caster, b
  15.                          caster->CastCustomSpell(GetUnitOwner(), 56160, &heal, NULL, NULL, true, 0, GetEffect(0));
  16.                      }
  17.                  }
  18. +               // Fade: Phantasm Talent
  19. +               else if (m_spellInfo->Id == 586)
  20. +               {
  21. +                   uint32 uChance = 0;
  22. +
  23. +                   if(caster->HasAura(47569)) //phantasm rank1
  24. +                       uChance = 50;
  25. +                   else if(caster->HasAura(47570)) //phantasm rank2
  26. +                       uChance = 100;
  27. +
  28. +                   if(uChance && roll_chance_i(uChance))
  29. +                   {
  30. +                       caster->RemoveMovementImpairingAuras();
  31. +                   }
  32. +               }
  33.                  break;
  34.              case SPELLFAMILY_ROGUE:
  35.                  // Sprint (skip non player casted spells by category)
  36. --
  37. 1.7.10.msysgit.1
Advertisement
Add Comment
Please, Sign In to add comment