summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/Player_warrior_charge.cs
blob: 6927c4aa9941e88e2a072e98677a31b3b5bf38eb (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
using System;
using XUtliPoolLib;

namespace XMainClient
{
	internal class Player_warrior_charge
	{
		public static bool checkInput(XSkill skill)
		{
			bool syncMode = XSingleton<XGame>.singleton.SyncMode;
			bool result;
			if (syncMode)
			{
				result = true;
			}
			else
			{
				bool flag = skill.Firer.IsPlayer && skill.Casting;
				if (flag)
				{
					bool flag2 = !XSingleton<XVirtualTab>.singleton.Feeding;
					if (flag2)
					{
						skill.Cease(true);
					}
				}
				result = true;
			}
			return result;
		}
	}
}