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

Port From (https://github.com/TrinityCore/TrinityCore/commit/e44d0c88734f8dcfd15655224ed6c674dffe1da6)
This commit is contained in:
hondacrx
2020-05-06 13:47:04 -04:00
parent ba6951c11d
commit 83f57da2b6
2 changed files with 8 additions and 2 deletions
+4
View File
@@ -2469,6 +2469,10 @@ namespace Game.Entities
spellInfo.ConeAngle = 90.0f;
}
// due to the way spell system works, unit would change orientation in Spell::_cast
if (spellInfo.HasAura(Difficulty.None, AuraType.ControlVehicle))
spellInfo.AttributesEx5 |= SpellAttr5.DontTurnDuringCast;
if (spellInfo.ActiveIconFileDataId == 135754) // flight
spellInfo.Attributes |= SpellAttr0.Passive;