diff options
| author | ariel- <ariel-@users.noreply.github.com> | 2017-03-20 12:35:09 -0300 |
|---|---|---|
| committer | funjoker <funjoker109@gmail.com> | 2020-04-24 17:18:49 +0200 |
| commit | e44d0c88734f8dcfd15655224ed6c674dffe1da6 (patch) | |
| tree | d3f93a38d2717ced2ae866530fa4ea33263f20d7 /src/server/game/Spells | |
| parent | 786bb561ca8b92033b962321d998fa2266f6e529 (diff) | |
Core/Spell: fix an issue with vehicle spells changing orientation of base vehicle
Closes #17234
(cherry picked from commit 4096b02a560499d2cb2f40c67ac0b30ed4c48ffd)
Diffstat (limited to 'src/server/game/Spells')
| -rw-r--r-- | src/server/game/Spells/SpellMgr.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index a336ff2ab63..fbd5235cdfa 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -3641,6 +3641,10 @@ void SpellMgr::LoadSpellInfoCorrections() if (spellInfo->HasAura(DIFFICULTY_NONE, SPELL_AURA_SPELL_MAGNET)) spellInfo->ProcFlags = 0; + // due to the way spell system works, unit would change orientation in Spell::_cast + if (spellInfo->HasAura(DIFFICULTY_NONE, SPELL_AURA_CONTROL_VEHICLE)) + spellInfo->AttributesEx5 |= SPELL_ATTR5_DONT_TURN_DURING_CAST; + if (spellInfo->ActiveIconFileDataId == 135754) // flight spellInfo->Attributes |= SPELL_ATTR0_PASSIVE; } |
