[11034] Implement self-damage part of spell 49016 work.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Ceris 2011-01-18 15:01:24 +03:00 committed by VladimirMangos
parent 56eb87f1f8
commit 97756e95a2
2 changed files with 9 additions and 1 deletions

View file

@ -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:

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11033"
#define REVISION_NR "11034"
#endif // __REVISION_NR_H__