From 97756e95a2ec34d83b84031c46e5f739f0731238 Mon Sep 17 00:00:00 2001 From: Ceris Date: Tue, 18 Jan 2011 15:01:24 +0300 Subject: [PATCH] [11034] Implement self-damage part of spell 49016 work. Signed-off-by: VladimirMangos --- src/game/SpellAuras.cpp | 8 ++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 31f9b5997..8a126e151 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -7675,6 +7675,14 @@ void Aura::PeriodicDummyTick() // Blood of the North // if (spell->SpellIconID == 30412) // return; + // Hysteria + if (spell->SpellFamilyFlags & UI64LIT(0x0000000020000000)) + { + // damage not expected to be show in logs, not any damage spell related to damage apply + uint32 deal = m_modifier.m_amount * target->GetMaxHealth() / 100; + target->DealDamage(target, deal, NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false); + return; + } break; } default: diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 7ae5879da..19e8ae07a 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 "11033" + #define REVISION_NR "11034" #endif // __REVISION_NR_H__