mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +00:00
[8854] Implement heal back part of spell 48181.
Signed-off-by: VladimirMangos <vladimir@getmangos.com> I choice maybe less clear way store future heal amount, but with avoid use additional fields for auras.
This commit is contained in:
parent
b9419c0605
commit
aa759d8161
3 changed files with 26 additions and 3 deletions
|
|
@ -2488,6 +2488,22 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
}
|
||||
case SPELLFAMILY_MAGE:
|
||||
break;
|
||||
case SPELLFAMILY_WARLOCK:
|
||||
{
|
||||
// Haunt
|
||||
if (GetSpellProto()->SpellIconID == 3172 && (GetSpellProto()->SpellFamilyFlags & UI64LIT(0x0004000000000000)))
|
||||
{
|
||||
// NOTE: for avoid use additional field damage stored in dummy value (replace unused 100%
|
||||
if (apply)
|
||||
m_modifier.m_amount = 0; // use value as damage counter instead redundent 100% percent
|
||||
else
|
||||
{
|
||||
int32 bp0 = m_modifier.m_amount;
|
||||
caster->CastCustomSpell(caster,48210,&bp0,NULL,NULL,true);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_PRIEST:
|
||||
{
|
||||
// Pain and Suffering
|
||||
|
|
@ -2510,8 +2526,6 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_PALADIN:
|
||||
break;
|
||||
case SPELLFAMILY_DRUID:
|
||||
{
|
||||
switch(GetId())
|
||||
|
|
@ -2642,6 +2656,8 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
}
|
||||
case SPELLFAMILY_HUNTER:
|
||||
break;
|
||||
case SPELLFAMILY_PALADIN:
|
||||
break;
|
||||
case SPELLFAMILY_SHAMAN:
|
||||
{
|
||||
// Improved Weapon Totems
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue