Core/AreaTriggers: Added helper static function AreaTrigger::CreateNewMovementForceId for use in scripts with movement forces

Port From (https://github.com/TrinityCore/TrinityCore/commit/df2d0f3670dcaa06ec0289631fbf2a582a8b69b1)
This commit is contained in:
hondacrx
2021-12-16 12:33:53 -05:00
parent f77b631422
commit 24b0f058a9
@@ -223,6 +223,11 @@ namespace Game.Entities
return at;
}
public static ObjectGuid CreateNewMovementForceId(Map map, uint areaTriggerId)
{
return ObjectGuid.Create(HighGuid.AreaTrigger, map.GetId(), areaTriggerId, map.GenerateLowGuid(HighGuid.AreaTrigger));
}
public override bool LoadFromDB(ulong spawnId, Map map, bool addToMap, bool allowDuplicate)
{
_spawnId = spawnId;