Exemplo n.º 1
0
 /// <summary>
 /// 佣兵释放或中招魂技状态
 /// </summary>
 public void AddDamageStatus(AbilityEffectStatus effectStatus)
 {
     if (effectStatus.BoutNum > 0)
     {
         lock (this)
         {
             List <AbilityEffectStatus> effectList = _damageStatusList.FindAll(m => m.AbilityType.Equals(effectStatus.AbilityType));
             if (effectList.Count > 0)
             {
                 var effect = effectList[0];//合并状态
                 effect.IsRemove = effectStatus.IsRemove;
                 if (effect.BoutNum < effectStatus.BoutNum)
                 {
                     effect.BoutNum = effectStatus.BoutNum;
                 }
                 if (effect.DamageNum < effectStatus.DamageNum)
                 {
                     effect.DamageNum = effectStatus.DamageNum;
                 }
             }
             else
             {
                 _damageStatusList.Add(effectStatus);
             }
         }
     }
     else
     {
         Trace.WriteLine(string.Format(">>佣兵释放或中招魂技状态丢失"));
     }
 }
Exemplo n.º 2
0
 private void AddDeamgeStatus(AbilityEffectStatus abilityEffect)
 {
     TagetGeneral.AddDamageStatus(abilityEffect);
 }