Core/Spells: Fixed Glyph of Pain Suppression

Signed-off-by: Shauren <[email protected]>
This commit is contained in:
Shauren
2011-01-14 20:24:39 +01:00
parent 3ab85db411
commit 458c7c642f
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -5773,6 +5773,11 @@ SpellCastResult Spell::CheckCasterAuras() const
mechanic_immune = IMMUNE_TO_MOVEMENT_IMPAIRMENT_AND_LOSS_CONTROL_MASK; mechanic_immune = IMMUNE_TO_MOVEMENT_IMPAIRMENT_AND_LOSS_CONTROL_MASK;
} }
// Glyph of Pain Suppression
if (m_spellInfo->SpellFamilyName == SPELLFAMILY_PRIEST && m_spellInfo->SpellIconID == 2178)
if (m_caster->HasAuraEffect(63248, 0)) // no SpellFamilyFlags or SpellIconID to identify this
mechanic_immune = 1 << MECHANIC_STUN; // "immune" to stun only for this cast
// Check whether the cast should be prevented by any state you might have. // Check whether the cast should be prevented by any state you might have.
SpellCastResult prevented_reason = SPELL_CAST_OK; SpellCastResult prevented_reason = SPELL_CAST_OK;
// Have to check if there is a stun aura. Otherwise will have problems with ghost aura apply while logging out // Have to check if there is a stun aura. Otherwise will have problems with ghost aura apply while logging out
+4
View File
@@ -3902,6 +3902,10 @@ void SpellMgr::LoadSpellCustomAttr()
spellInfo->AttributesEx3 |= SPELL_ATTR3_NO_DONE_BONUS; spellInfo->AttributesEx3 |= SPELL_ATTR3_NO_DONE_BONUS;
count++; count++;
break; break;
case 33206: // Pain Suppression
spellInfo->AttributesEx5 &= ~SPELL_ATTR5_USABLE_WHILE_STUNNED;
count++;
break;
case 53241: // Marked for Death (Rank 1) case 53241: // Marked for Death (Rank 1)
case 53243: // Marked for Death (Rank 2) case 53243: // Marked for Death (Rank 2)
case 53244: // Marked for Death (Rank 3) case 53244: // Marked for Death (Rank 3)