From 1d305e51d8b3858c180ead02d42a70d0c7840328 Mon Sep 17 00:00:00 2001 From: j4r0d Date: Fri, 22 Jan 2010 20:34:05 +0300 Subject: [PATCH] [9238] Update spell 15286 work to current funtionality. Signed-off-by: VladimirMangos --- src/game/Unit.cpp | 11 ++++------- src/shared/revision_nr.h | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index db9265975..a99b383ca 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5667,17 +5667,14 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu // Vampiric Embrace case 15286: { - if(!pVictim || !pVictim->isAlive()) + // Return if self damage + if (this == pVictim) return false; - // pVictim is caster of aura - if(triggeredByAura->GetCasterGUID() != pVictim->GetGUID()) - return false; - - // heal amount + // Heal amount - Self/Team int32 team = triggerAmount*damage/500; int32 self = triggerAmount*damage/100 - team; - pVictim->CastCustomSpell(pVictim,15290,&team,&self,NULL,true,castItem,triggeredByAura); + CastCustomSpell(this,15290,&team,&self,NULL,true,castItem,triggeredByAura); return true; // no hidden cooldown } // Priest Tier 6 Trinket (Ashtongue Talisman of Acumen) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 8932812a3..6fb964925 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9237" + #define REVISION_NR "9238" #endif // __REVISION_NR_H__