mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 21:26:23 +00:00
fix(Core/Spells): Fix all cases of client crash when pressing ESC after a spell being cast (#8497)
* cherry-pick commit (f765e8eb73)
* closes https://github.com/azerothcore/azerothcore-wotlk/issues/8143
Co-Authored-By: Shauren <shauren.trinity@gmail.com>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
@@ -3454,16 +3454,6 @@ void SpellMgr::LoadDbcDataCorrections()
|
||||
spellInfo->EffectMiscValueB[0] = 64;
|
||||
});
|
||||
|
||||
ApplySpellFix({
|
||||
45257, // Using Steam Tonk Controller
|
||||
45440, // Steam Tonk Controller
|
||||
60256, // Collect Sample
|
||||
45634 // Neural Needle
|
||||
}, [](SpellEntry* spellInfo)
|
||||
{
|
||||
spellInfo->AttributesEx4 &= ~SPELL_ATTR4_ALLOW_CAST_WHILE_CASTING; // Crashes client on pressing ESC
|
||||
});
|
||||
|
||||
ApplySpellFix({
|
||||
40244, // Simon Game Visual
|
||||
40245, // Simon Game Visual
|
||||
@@ -6782,7 +6772,6 @@ void SpellMgr::LoadDbcDataCorrections()
|
||||
spellInfo->Effect[1] = SPELL_EFFECT_DUMMY;
|
||||
spellInfo->EffectRadiusIndex[1] = spellInfo->EffectRadiusIndex[0];
|
||||
spellInfo->EffectImplicitTargetA[1] = TARGET_UNIT_DEST_AREA_ENTRY;
|
||||
spellInfo->AttributesEx4 &= ~SPELL_ATTR4_ALLOW_CAST_WHILE_CASTING;
|
||||
});
|
||||
|
||||
// Still At It
|
||||
@@ -7030,12 +7019,6 @@ void SpellMgr::LoadDbcDataCorrections()
|
||||
spellInfo->AuraInterruptFlags &= ~AURA_INTERRUPT_FLAG_NOT_ABOVEWATER;
|
||||
});
|
||||
|
||||
// Leading the Charge (13380), All Infra-Green bomber quests
|
||||
ApplySpellFix({ 59059 }, [](SpellEntry* spellInfo)
|
||||
{
|
||||
spellInfo->AttributesEx4 &= ~SPELL_ATTR4_ALLOW_CAST_WHILE_CASTING;
|
||||
});
|
||||
|
||||
// Dark Horizon (12664), Reunited (12663)
|
||||
ApplySpellFix({ 52190 }, [](SpellEntry* spellInfo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user