protected void OnLeaveBuff(int buffID, long targetID) { XDict <int, BuffState> buffListByEntityID = this.GetBuffListByEntityID(targetID); if (!buffListByEntityID.ContainsKey(buffID)) { return; } this.KillBuff(buffID, buffListByEntityID[buffID].casterID, targetID, buffListByEntityID[buffID].fromSkillLevel, buffListByEntityID[buffID].isCommunicateMix); this.buffStateTable[targetID].Remove(buffID); LocalBattleProtocolSimulator.SendRemoveBuff(targetID, buffID); }