casucristy

Untitled

Jul 29th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.92 KB | None | 0 0
  1. From 4b8d464aafd7687a321ea1d92549c693ef7b43b1 Mon Sep 17 00:00:00 2001
  2. From: unknown <cristi@cristis-PC.(none)>
  3. Date: Sun, 29 Jul 2012 17:18:18 +0300
  4. Subject: [PATCH] Fix talent Body and Soul and also PowerWordShiled condition.
  5.  
  6. ---
  7.  src/server/game/Spells/Auras/SpellAuras.cpp |   12 +++++++++++-
  8.  1 file changed, 11 insertions(+), 1 deletion(-)
  9.  
  10. diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp
  11. index 96d474d..70ca683 100755
  12. --- a/src/server/game/Spells/Auras/SpellAuras.cpp
  13. +++ b/src/server/game/Spells/Auras/SpellAuras.cpp
  14. @@ -1309,7 +1309,7 @@ void Aura::HandleAuraSpecificMods(AuraApplication const* aurApp, Unit* caster, b
  15.                      }
  16.                  }
  17.                  // Power Word: Shield
  18. -                else if (m_spellInfo->SpellFamilyFlags[0] & 0x1 && m_spellInfo->SpellFamilyFlags[2] & 0x400 && GetEffect(0))
  19. +                else if (m_spellInfo->SpellFamilyFlags[0] & 0x1 && GetEffect(0))
  20.                  {
  21.                      // Glyph of Power Word: Shield
  22.                      if (AuraEffect* glyph = caster->GetAuraEffect(55672, 0))
  23. @@ -1318,6 +1318,16 @@ void Aura::HandleAuraSpecificMods(AuraApplication const* aurApp, Unit* caster, b
  24.                          int32 heal = glyph->GetAmount() * GetEffect(0)->GetAmount()/100;
  25.                          caster->CastCustomSpell(GetUnitOwner(), 56160, &heal, NULL, NULL, true, 0, GetEffect(0));
  26.                      }
  27. +                    //Body and Soul Talent
  28. +                    if(caster->HasAura(64127))
  29. +                    {
  30. +                        caster->AddAura(64128,target); //rank1
  31. +                    }
  32. +                    else if(caster->HasAura(64129))
  33. +                    {
  34. +                        caster->AddAura(65081,target); //rank2
  35. +                    }
  36. +
  37.                  }
  38.                 // Fade: Phantasm Talent
  39.                 else if (m_spellInfo->Id == 586)
  40. --
  41. 1.7.10.msysgit.1
Advertisement
Add Comment
Please, Sign In to add comment