Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 547eee9b525ae874c0b004998b357b0d37384ce8 Mon Sep 17 00:00:00 2001
- From: unknown <cristi@cristis-PC.(none)>
- Date: Sat, 28 Jul 2012 14:47:57 +0300
- Subject: [PATCH] Fix talent Masochims - Priest
- ---
- src/server/game/Entities/Unit/Unit.cpp | 15 ++++++++++++++-
- 1 file changed, 14 insertions(+), 1 deletion(-)
- diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
- index 95871d7..5b84ebd 100644
- --- a/src/server/game/Entities/Unit/Unit.cpp
- +++ b/src/server/game/Entities/Unit/Unit.cpp
- @@ -8356,7 +8356,20 @@ bool Unit::HandleAuraProc(Unit* victim, uint32 damage, Aura* triggeredByAura, Sp
- }
- }
- }
- - break;
- + // masochism
- + if(dummySpell->SpellIconID == 2211)
- + {
- + *handled = true;
- + if((procSpell && procSpell->Id == 32409) || damage >= CountPctFromMaxHealth(10))
- + {
- + int32 bp0 = dummySpell->Effects[EFFECT_0].CalcValue();
- + CastCustomSpell(this, 89007, &bp0, NULL, NULL, true, NULL, triggeredByAura->GetEffect(0), this->GetGUID());
- + return true;
- + }
- + else
- + return false;
- + }
- + break;
- }
- case SPELLFAMILY_PALADIN:
- {
- --
- 1.7.10.msysgit.1
Advertisement
Add Comment
Please, Sign In to add comment