Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 7049c6c54f88c0346b9d3778d9a10ce756d95d2f Mon Sep 17 00:00:00 2001
- From: unknown <cristi@cristis-PC.(none)>
- Date: Wed, 25 Jul 2012 03:17:58 +0300
- Subject: [PATCH] Fix talent Demonic Embrance
- ---
- src/server/game/Spells/Auras/SpellAuraEffects.cpp | 12 ++++++++++++
- 1 file changed, 12 insertions(+)
- diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
- index 75b9bb7..07ffac3 100644
- --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
- +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
- @@ -738,6 +738,18 @@ int32 AuraEffect::CalculateAmount(Unit* caster)
- }
- break;
- }
- + case SPELL_AURA_MOD_TOTAL_STAT_PERCENTAGE:
- + {
- + uint32 uSpellId = GetId();
- +
- + //demonic embrance rank1,rank2,rank3
- + if(uSpellId == 18697 || uSpellId == 18698 || uSpellId == 18699)
- + {
- + amount = GetBase()->GetUnitOwner()->CountPctFromMaxHealth(amount);
- + amount /= 12;
- + }
- + break;
- + }
- default:
- break;
- }
- --
- 1.7.10.msysgit.1
Advertisement
Add Comment
Please, Sign In to add comment