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