public void RemoveBuff(Msg_NpcDeBuff _deBuff) { if(m_dicBuff.ContainsKey(_deBuff.skillTableIdx_) == true && m_dicBuff[_deBuff.skillTableIdx_].ContainsKey(_deBuff.potencyIdx_) == true) { BuffElement element = m_dicBuff[_deBuff.skillTableIdx_][_deBuff.potencyIdx_]; element.Release(); ReleaseResurrectionPenalty( element); m_dicBuff[_deBuff.skillTableIdx_].Remove(_deBuff.potencyIdx_); foreach(eBUFFTYPE key in m_mdicBuff.Keys) { foreach(BuffElement node in m_mdicBuff[key]) { if(element.Equals(node) == true) { m_mdicBuff.Remove(key, node); return; } } } } // List<BuffElement> listRemove = new List<BuffElement>(); // foreach(BuffElement element in m_listDelayed) // { // if(_deBuff.skillTableIdx_ == element.skillIdx && // _deBuff.potencyIdx_ == element.PotencyIdx) // { // listRemove.Add(element); // } // } // // foreach(BuffElement element in listRemove) // { // m_listDelayed.Remove(element); // } }
public void RemoveBuff(Msg_NpcDeBuff _deBuff) { m_Buff.RemoveBuff(_deBuff); }