summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/geraint_fly_away.cs
blob: e08f4faa8edaf1947030e26cfc957606b7e075d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using XUtliPoolLib;

namespace XMainClient
{
	internal class geraint_fly_away
	{
		private static bool _once = false;

		public static bool Do(List<XActor> actors)
		{
			bool flag = actors == null;
			bool result;
			if (flag)
			{
				geraint_fly_away._once = false;
				result = true;
			}
			else
			{
				bool once = geraint_fly_away._once;
				if (once)
				{
					result = false;
				}
				else
				{
					geraint_fly_away._once = true;
					List<XEntity> ally = XSingleton<XEntityMgr>.singleton.GetAlly(XSingleton<XEntityMgr>.singleton.Player);
					foreach (XEntity xentity in ally)
					{
						bool flag2 = xentity.Attributes.TypeID == 3002u || xentity.Attributes.TypeID == 3001u;
						if (flag2)
						{
							xentity.EngineObject.Position = XResourceLoaderMgr.Far_Far_Away;
						}
					}
					result = true;
				}
			}
			return result;
		}
	}
}