Core/Players: Allow targeting a specific transport during teleports

Port From (https://github.com/TrinityCore/TrinityCore/commit/5b130cfb4253a94c08ff807e7f28e988651d2476)
This commit is contained in:
Hondacrx
2024-08-25 14:38:47 -04:00
parent cbb6c97a6e
commit 2004acd5d1
6 changed files with 130 additions and 101 deletions
+5 -5
View File
@@ -3863,15 +3863,15 @@ namespace Game.Entities
}
else
{
stmt.AddValue(index++, (ushort)GetTeleportDest().GetMapId());
stmt.AddValue(index++, (ushort)GetTeleportDest().Location.GetMapId());
stmt.AddValue(index++, 0);
stmt.AddValue(index++, (byte)GetDungeonDifficultyID());
stmt.AddValue(index++, (byte)GetRaidDifficultyID());
stmt.AddValue(index++, (byte)GetLegacyRaidDifficultyID());
stmt.AddValue(index++, finiteAlways(GetTeleportDest().GetPositionX()));
stmt.AddValue(index++, finiteAlways(GetTeleportDest().GetPositionY()));
stmt.AddValue(index++, finiteAlways(GetTeleportDest().GetPositionZ()));
stmt.AddValue(index++, finiteAlways(GetTeleportDest().GetOrientation()));
stmt.AddValue(index++, finiteAlways(GetTeleportDest().Location.GetPositionX()));
stmt.AddValue(index++, finiteAlways(GetTeleportDest().Location.GetPositionY()));
stmt.AddValue(index++, finiteAlways(GetTeleportDest().Location.GetPositionZ()));
stmt.AddValue(index++, finiteAlways(GetTeleportDest().Location.GetOrientation()));
}
stmt.AddValue(index++, finiteAlways(GetTransOffsetX()));