Core/Units: Allow mind controlling non-controllable vehicles (for example players that become vehicle during boss encounters or creatures that only are vehicles to show non standard power type)
Port From (https://github.com/TrinityCore/TrinityCore/commit/d56d92fbe7436af00e00b00ca5e7640f852d3485)
This commit is contained in:
@@ -6786,7 +6786,7 @@ namespace Game.Spells
|
||||
case AuraType.ModCharm:
|
||||
case AuraType.ModPossessPet:
|
||||
case AuraType.AoeCharm:
|
||||
if (target.IsTypeId(TypeId.Unit) && target.IsVehicle())
|
||||
if (target.GetVehicleKit() && target.GetVehicleKit().IsControllableVehicle())
|
||||
return false;
|
||||
if (target.IsMounted())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user