| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 | 
							- using System.Collections.Generic;
 
- using CombatLibrary.CombatLibrary.CombatCore.CustomizeTimeLogic.FxLogic;
 
- using GameLogic.Combat.Buff;
 
- using GameLogic.Combat.CombatTool;
 
- using GameLogic.Combat.Hero;
 
- using UTool.CustomizeTimeLogic.FxLogic.TimeLineEventinterface;
 
- namespace GameLogic.Combat.Skill
 
- {
 
-     /// <summary>
 
-     /// 狐狸随机为队友清除一个debuff
 
-     /// </summary>
 
-     public class S9102 : SkillBasic
 
-     {
 
-         protected override void ProUseSkill()
 
-         {
 
-             CombatHeroEntity[] allHero =
 
-                 CombatController.currActiveCombat.CombatHeroController.GetHero(CombatHeroEntity.IsEnemy,out int maxCount);
 
-             List<CombatHeroEntity> debuffHero = new List<CombatHeroEntity>();
 
-             for (int i = 0; i < maxCount; i++)
 
-             {
 
-                 List<BuffBasic> allBuff = allHero[i].BuffControl.GetBuffBasicForBuffType(2, 1);
 
-                 if (allBuff.Count > 0)
 
-                 {
 
-                     debuffHero.Add(allHero[i]);
 
-                 }
 
-             }
 
-             CombatHeroEntity target = null;
 
-             if (debuffHero.Count > 0)
 
-             {
 
-                 int index = CombatCalculateTool.Instance.GetOdd(0, debuffHero.Count);
 
-                 target = debuffHero[index];
 
-             }
 
-             else if (allHero.Length > 0)
 
-             {
 
-                 int index = CombatCalculateTool.Instance.GetOdd(0, allHero.Length);
 
-                 target = allHero[index];
 
-             }
 
-             BetterList<ILifetCycleHitPoint> currTarget = new BetterList<ILifetCycleHitPoint>();
 
-             if (target != null)
 
-             {
 
-                 currTarget.Add(target.GetMainHotPoin<CombatHeroHitPoint>());
 
-             }
 
-             ActivationTimeLineData("9102", currTarget: currTarget);
 
-         }
 
-         protected override void ProDefaultTimeLineTrigger(string groupName, CombatHeroHitPoint targetEntity,
 
-             ITimelineFxLogic timelineFxLogic,
 
-             TriggerData triggerData, ISkillFeatures skillFeatures)
 
-         {
 
-             List<BuffBasic> allBuff = targetEntity.combatHeroEntity.BuffControl.GetBuffBasicForBuffType(2, 1);
 
-             if (allBuff.Count > 0)
 
-             {
 
-                 int index = CombatCalculateTool.Instance.GetOdd(0, allBuff.Count);
 
-                 targetEntity.combatHeroEntity.BuffControl.RemoveBuff(allBuff[index]);
 
-             }
 
-         }
 
-     }
 
- }
 
 
  |