mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[9238] Update spell 15286 work to current funtionality.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
707c36bb73
commit
1d305e51d8
2 changed files with 5 additions and 8 deletions
|
|
@ -5667,17 +5667,14 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
||||||
// Vampiric Embrace
|
// Vampiric Embrace
|
||||||
case 15286:
|
case 15286:
|
||||||
{
|
{
|
||||||
if(!pVictim || !pVictim->isAlive())
|
// Return if self damage
|
||||||
|
if (this == pVictim)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// pVictim is caster of aura
|
// Heal amount - Self/Team
|
||||||
if(triggeredByAura->GetCasterGUID() != pVictim->GetGUID())
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// heal amount
|
|
||||||
int32 team = triggerAmount*damage/500;
|
int32 team = triggerAmount*damage/500;
|
||||||
int32 self = triggerAmount*damage/100 - team;
|
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
|
return true; // no hidden cooldown
|
||||||
}
|
}
|
||||||
// Priest Tier 6 Trinket (Ashtongue Talisman of Acumen)
|
// Priest Tier 6 Trinket (Ashtongue Talisman of Acumen)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9237"
|
#define REVISION_NR "9238"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue