Core/Spell: fix an issue with vehicle spells changing orientation of base vehicle

Closes #17234
This commit is contained in:
ariel-
2017-03-20 12:35:09 -03:00
committed by Aokromes
parent 2ce8cf4863
commit d1382c5f23
2 changed files with 8 additions and 2 deletions

View File

@@ -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;