示例#1
0
 public void CacheClearBuff(BuffSkill _buff, RES_SKILLFUNC_CLEAR_RULE _rule)
 {
     if ((_buff.cfgData.dwClearRule == ((long)_rule)) && (_buff.cfgData.dwEffectType == 3))
     {
         this.CacheBufferList.Add(_buff.cfgData.iCfgID);
     }
 }
示例#2
0
 public void CacheClearBuff(BuffSkill _buff, RES_SKILLFUNC_CLEAR_RULE _rule)
 {
     if (_buff.cfgData.bClearRule == (byte)_rule && _buff.cfgData.bEffectType == 3)
     {
         this.CacheBufferList.Add(_buff.cfgData.iCfgID);
     }
 }
示例#3
0
 public void CheckBuffNoClear(RES_SKILLFUNC_CLEAR_RULE _rule)
 {
     if (this.buffHolder.SpawnedBuffList.Count != 0)
     {
         BuffSkill[] array = new BuffSkill[this.buffHolder.SpawnedBuffList.Count];
         this.buffHolder.SpawnedBuffList.CopyTo(array);
         for (int i = 0; i < array.Length; i++)
         {
             BuffSkill skill = array[i];
             if ((skill.cfgData.dwClearRule != ((long)_rule)) && (skill.cfgData.dwEffectType != 3))
             {
                 skill.Stop();
             }
         }
     }
 }
示例#4
0
 public void CheckBuffNoClear(RES_SKILLFUNC_CLEAR_RULE _rule)
 {
     if (this.buffHolder.SpawnedBuffList.Count != 0)
     {
         this.CopyList(this.buffHolder.SpawnedBuffList, this.TempBuffList);
         for (int i = 0; i < this.TempBuffList.Count; i++)
         {
             BuffSkill skill = this.TempBuffList[i];
             if ((skill.cfgData.dwClearRule != ((long)_rule)) && (skill.cfgData.dwEffectType != 3))
             {
                 skill.Stop();
             }
         }
         this.TempBuffList.Clear();
     }
 }
示例#5
0
 public void CheckBuffNoClear(RES_SKILLFUNC_CLEAR_RULE _rule)
 {
     if (this.buffHolder.SpawnedBuffList.get_Count() == 0)
     {
         return;
     }
     this.CopyList(this.buffHolder.SpawnedBuffList, this.TempBuffList);
     for (int i = 0; i < this.TempBuffList.get_Count(); i++)
     {
         BuffSkill buffSkill = this.TempBuffList.get_Item(i);
         if (buffSkill.cfgData.bClearRule != (byte)_rule && buffSkill.cfgData.bEffectType != 3)
         {
             buffSkill.Stop();
         }
     }
     this.TempBuffList.Clear();
 }