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

Closes #17234
This commit is contained in:
ariel- authored and Aokromes committed 2017-03-20 16:55:01 +01:00
1 parent 2ce8cf4863
commit d1382c5f23
2 files changed
+8 -2

No files matched your search

+4
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;