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); } }
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); } }
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(); } } } }
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(); } }
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(); }