casucristy

Untitled

Jul 24th, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.09 KB | None | 0 0
  1. From 7049c6c54f88c0346b9d3778d9a10ce756d95d2f Mon Sep 17 00:00:00 2001
  2. From: unknown <cristi@cristis-PC.(none)>
  3. Date: Wed, 25 Jul 2012 03:17:58 +0300
  4. Subject: [PATCH] Fix talent Demonic Embrance
  5.  
  6. ---
  7.  src/server/game/Spells/Auras/SpellAuraEffects.cpp |   12 ++++++++++++
  8.  1 file changed, 12 insertions(+)
  9.  
  10. diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
  11. index 75b9bb7..07ffac3 100644
  12. --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
  13. +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
  14. @@ -738,6 +738,18 @@ int32 AuraEffect::CalculateAmount(Unit* caster)
  15.                  }
  16.                  break;
  17.              }
  18. +       case SPELL_AURA_MOD_TOTAL_STAT_PERCENTAGE:
  19. +           {
  20. +               uint32 uSpellId = GetId();
  21. +
  22. +               //demonic embrance rank1,rank2,rank3
  23. +               if(uSpellId == 18697 || uSpellId == 18698 || uSpellId == 18699)
  24. +               {
  25. +                   amount = GetBase()->GetUnitOwner()->CountPctFromMaxHealth(amount);
  26. +                   amount /= 12;
  27. +               }
  28. +               break;
  29. +           }
  30.          default:
  31.              break;
  32.      }
  33. --
  34. 1.7.10.msysgit.1
Advertisement
Add Comment
Please, Sign In to add comment