Skip to content

Commit

Permalink
[9238] Update spell 15286 work to current funtionality.
Browse files Browse the repository at this point in the history
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
  • Loading branch information
j4r0d authored and VladimirMangos committed Jan 22, 2010
1 parent 9de3301 commit 954a5ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions src/game/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5667,17 +5667,14 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
// Vampiric Embrace
case 15286:
{
if(!pVictim || !pVictim->isAlive())
return false;

// pVictim is caster of aura
if(triggeredByAura->GetCasterGUID() != pVictim->GetGUID())
// Return if self damage
if (this == pVictim)
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)
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9237"
#define REVISION_NR "9238"
#endif // __REVISION_NR_H__

0 comments on commit 954a5ec

Please sign in to comment.