mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/Spells: Fixed all cases of spells that crash the client when pressing ESC after being cast
This commit is contained in:
@@ -3830,7 +3830,7 @@ void Spell::SendSpellStart()
|
||||
if (schoolImmunityMask || mechanicImmunityMask)
|
||||
castFlags |= CAST_FLAG_IMMUNITY;
|
||||
|
||||
if ((IsTriggered() && !m_spellInfo->IsAutoRepeatRangedSpell()) || m_triggeredByAuraSpell)
|
||||
if (((IsTriggered() && !m_spellInfo->IsAutoRepeatRangedSpell()) || m_triggeredByAuraSpell) && !m_cast_count)
|
||||
castFlags |= CAST_FLAG_PENDING;
|
||||
|
||||
if ((m_caster->GetTypeId() == TYPEID_PLAYER ||
|
||||
@@ -3917,7 +3917,7 @@ void Spell::SendSpellGo()
|
||||
uint32 castFlags = CAST_FLAG_UNKNOWN_9;
|
||||
|
||||
// triggered spells with spell visual != 0
|
||||
if ((IsTriggered() && !m_spellInfo->IsAutoRepeatRangedSpell()) || m_triggeredByAuraSpell)
|
||||
if (((IsTriggered() && !m_spellInfo->IsAutoRepeatRangedSpell()) || m_triggeredByAuraSpell) && !m_cast_count)
|
||||
castFlags |= CAST_FLAG_PENDING;
|
||||
|
||||
if ((m_caster->GetTypeId() == TYPEID_PLAYER ||
|
||||
|
||||
@@ -3813,12 +3813,6 @@ void SpellMgr::LoadSpellInfoCorrections()
|
||||
case 49376: // Feral Charge (Cat Form)
|
||||
spellInfo->AttributesEx3 &= ~SPELL_ATTR3_CANT_TRIGGER_PROC;
|
||||
break;
|
||||
case 45257: // Using Steam Tonk Controller
|
||||
case 45440: // Steam Tonk Controller
|
||||
case 60256: // Collect Sample
|
||||
// Crashes client on pressing ESC
|
||||
spellInfo->AttributesEx4 &= ~SPELL_ATTR4_CAN_CAST_WHILE_CASTING;
|
||||
break;
|
||||
case 96942: // Gaze of Occu'thar
|
||||
case 101009: // Gaze of Occu'thar
|
||||
spellInfo->AttributesEx &= ~SPELL_ATTR1_CHANNELED_1;
|
||||
|
||||
Reference in New Issue
Block a user