feat(Core/GameObject): Add an overload to SummonGameObject() to accep… (#12821)

feat(Core/GameObject): Add an overload to SummonGameObject() to accept positions
This commit is contained in:
Skjalf
2022-08-21 19:48:34 -03:00
committed by GitHub
parent a98e475f82
commit ca9c19ffd4
2 changed files with 6 additions and 0 deletions

View File

@@ -2275,6 +2275,11 @@ GameObject* Map::SummonGameObject(uint32 entry, float x, float y, float z, float
return go;
}
GameObject* Map::SummonGameObject(uint32 entry, Position const& pos, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime, bool checkTransport)
{
return SummonGameObject(entry, pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), pos.GetOrientation(), rotation0, rotation1, rotation2, rotation3, respawnTime, checkTransport);
}
void WorldObject::SetZoneScript()
{
if (Map* map = FindMap())