Core/Spell: fix an issue with vehicle spells changing orientation of base vehicle
Closes #17234
This commit is contained in:
1 parent
2ce8cf4863
commit
d1382c5f23
2 files changed
+8
-2
No files matched your search
@@ -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