mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[9720] Implement Glyph of Siphon Life and fix Siphon Life proc
Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
parent
117bc1e836
commit
8f18a0d920
6 changed files with 15 additions and 3 deletions
|
|
@ -5823,6 +5823,12 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
|||
// Siphon Life
|
||||
case 63108:
|
||||
{
|
||||
if (triggeredByAura->GetEffIndex() != EFFECT_INDEX_0)
|
||||
return false;
|
||||
|
||||
if (Aura *aur = GetAura(56216, EFFECT_INDEX_0))
|
||||
triggerAmount += triggerAmount * aur->GetModifier()->m_amount / 100;
|
||||
|
||||
basepoints[0] = int32(damage * triggerAmount / 100);
|
||||
triggered_spell_id = 63106;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue