fix(Core/Spells): Allow glyphed PS to be casted while Seduced (#22047)
While having Glyph of Pain Suppression the player now (correctly) can cast it while being charmed.
This commit is contained in:
@@ -6895,9 +6895,9 @@ SpellCastResult Spell::CheckCasterAuras(bool preventionOnly) const
|
|||||||
bool usableInStun = m_spellInfo->HasAttribute(SPELL_ATTR5_ALLOW_WHILE_STUNNED);
|
bool usableInStun = m_spellInfo->HasAttribute(SPELL_ATTR5_ALLOW_WHILE_STUNNED);
|
||||||
|
|
||||||
// Glyph of Pain Suppression
|
// Glyph of Pain Suppression
|
||||||
// there is no other way to handle it
|
/// @todo Add a proper function to bypass stuns
|
||||||
if (m_spellInfo->Id == 33206 && !m_caster->HasAura(63248))
|
if (m_spellInfo->Id == 33206 && m_caster->HasAura(63248))
|
||||||
usableInStun = false;
|
usableInStun = true;
|
||||||
|
|
||||||
// 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;
|
||||||
@@ -6920,6 +6920,9 @@ SpellCastResult Spell::CheckCasterAuras(bool preventionOnly) const
|
|||||||
// Hand of Freedom, can be used while sapped
|
// Hand of Freedom, can be used while sapped
|
||||||
if (m_spellInfo->Id == 1044)
|
if (m_spellInfo->Id == 1044)
|
||||||
mask |= 1 << MECHANIC_SAPPED;
|
mask |= 1 << MECHANIC_SAPPED;
|
||||||
|
// Glyph of Pain Suppression, can be used while stunned (Seduction is a charm mechanic)
|
||||||
|
if (m_spellInfo->Id == 33206)
|
||||||
|
mask |= (1 << MECHANIC_CHARM);
|
||||||
Unit::AuraEffectList const& stunAuras = m_caster->GetAuraEffectsByType(SPELL_AURA_MOD_STUN);
|
Unit::AuraEffectList const& stunAuras = m_caster->GetAuraEffectsByType(SPELL_AURA_MOD_STUN);
|
||||||
for (Unit::AuraEffectList::const_iterator i = stunAuras.begin(); i != stunAuras.end(); ++i)
|
for (Unit::AuraEffectList::const_iterator i = stunAuras.begin(); i != stunAuras.end(); ++i)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user