From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/Player_academic_buff_fuhuo.cs | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/Player_academic_buff_fuhuo.cs (limited to 'Client/Assets/Scripts/XMainClient/Player_academic_buff_fuhuo.cs') diff --git a/Client/Assets/Scripts/XMainClient/Player_academic_buff_fuhuo.cs b/Client/Assets/Scripts/XMainClient/Player_academic_buff_fuhuo.cs new file mode 100644 index 00000000..a109d7be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_academic_buff_fuhuo.cs @@ -0,0 +1,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 ally = XSingleton.singleton.GetAlly(XSingleton.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; + } + } +} -- cgit v1.1-26-g67d0