summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/Player_academic_buff_fuhuo.cs
blob: a109d7beef3d95f20efbaf6501969296e12a5167 (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
using System;
using System.Collections.Generic;
using XUtliPoolLib;

namespace XMainClient
{
	internal class Player_academic_buff_fuhuo
	{
		public static bool ReviveAlly(XSkill skill)
		{
			return true;
		}

		public static bool ExternalCanCast()
		{
			List<XEntity> ally = XSingleton<XEntityMgr>.singleton.GetAlly(XSingleton<XEntityMgr>.singleton.Player);
			for (int i = 0; i < ally.Count; i++)
			{
				bool flag = ally[i].IsRole && !ally[i].IsPlayer && ally[i].IsDead;
				if (flag)
				{
					return true;
				}
			}
			return false;
		}
	}
}