mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04: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
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue