mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Core/Spell: fix an issue with vehicle spells changing orientation of base vehicle
Closes #17234
This commit is contained in:
@@ -3034,6 +3034,10 @@ void SpellMgr::LoadSpellInfoCorrections()
|
||||
if (spellInfo->Effects[j].IsAura(SPELL_AURA_SPELL_MAGNET))
|
||||
spellInfo->ProcFlags = 0;
|
||||
|
||||
// due to the way spell system works, unit would change orientation in Spell::_cast
|
||||
if (spellInfo->HasAura(SPELL_AURA_CONTROL_VEHICLE))
|
||||
spellInfo->AttributesEx5 |= SPELL_ATTR5_DONT_TURN_DURING_CAST;
|
||||
|
||||
if (spellInfo->ActiveIconID == 2158) // flight
|
||||
spellInfo->Attributes |= SPELL_ATTR0_PASSIVE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user