mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[8920] Fixed glyph 42408 by move code to more correct place.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
6094d2368b
commit
155ea6f40a
3 changed files with 12 additions and 22 deletions
|
|
@ -1841,7 +1841,17 @@ void Unit::CalcAbsorbResist(Unit *pVictim,SpellSchoolMask schoolMask, DamageEffe
|
|||
preventDeathAmount = (*i)->GetModifier()->m_amount;
|
||||
continue;
|
||||
}
|
||||
|
||||
// Power Word: Shield
|
||||
if (spellProto->SpellFamilyFlags & UI64LIT(00000001) && spellProto->Mechanic == MECHANIC_SHIELD)
|
||||
{
|
||||
// Glyph of Power Word: Shield
|
||||
if (Aura *glyph = pVictim->GetAura(55672,0))
|
||||
{
|
||||
int32 heal = int32(glyph->GetModifier()->m_amount *
|
||||
(RemainingDamage >= currentAbsorb ? currentAbsorb : RemainingDamage) / 100);
|
||||
pVictim->CastCustomSpell(pVictim, 56160, &heal, NULL, NULL, true, 0, *i);
|
||||
}
|
||||
}
|
||||
// Reflective Shield
|
||||
if (spellProto->SpellFamilyFlags == 0x1 && canReflect)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue