mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[8512] Implement glyph 42408.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
81a4eabe34
commit
a7c7de947f
2 changed files with 22 additions and 2 deletions
|
|
@ -6150,6 +6150,26 @@ void Aura::HandleSchoolAbsorb(bool apply, bool Real)
|
||||||
DoneActualBenefit *= caster->CalculateLevelPenalty(GetSpellProto());
|
DoneActualBenefit *= caster->CalculateLevelPenalty(GetSpellProto());
|
||||||
|
|
||||||
m_modifier.m_amount += (int32)DoneActualBenefit;
|
m_modifier.m_amount += (int32)DoneActualBenefit;
|
||||||
|
|
||||||
|
// now that the correct amount is computed, apply caster aura, if any
|
||||||
|
switch(m_spellProto->SpellFamilyName)
|
||||||
|
{
|
||||||
|
case SPELLFAMILY_PRIEST:
|
||||||
|
// Power Word: Shield
|
||||||
|
if (m_spellProto->SpellFamilyFlags & UI64LIT(0x0000000000000001))
|
||||||
|
{
|
||||||
|
// Glyph of Power Word: Shield
|
||||||
|
if(Aura* glyph = caster->GetAura(55672,0))
|
||||||
|
{
|
||||||
|
// instant heal glyph m_amount% of the absorbed amount
|
||||||
|
int32 heal = (glyph->GetModifier()->m_amount * m_modifier.m_amount)/100;
|
||||||
|
caster->CastCustomSpell(m_target, 56160, &heal, NULL, NULL, true, 0, this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -7172,7 +7192,7 @@ void Aura::HandleManaShield(bool apply, bool Real)
|
||||||
switch(m_spellProto->SpellFamilyName)
|
switch(m_spellProto->SpellFamilyName)
|
||||||
{
|
{
|
||||||
case SPELLFAMILY_MAGE:
|
case SPELLFAMILY_MAGE:
|
||||||
if(m_spellProto->SpellFamilyFlags & UI64LIT(0x8000))
|
if(m_spellProto->SpellFamilyFlags & UI64LIT(0x0000000000008000))
|
||||||
{
|
{
|
||||||
// Mana Shield
|
// Mana Shield
|
||||||
// +50% from +spd bonus
|
// +50% from +spd bonus
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8511"
|
#define REVISION_NR "8512"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue