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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user