using System; using System.Collections.Generic; using System.Linq; using System.Text; using XmdsCommon.Plugin; using XmdsCommonServer.Plugin.XmdsSkillTemplate.Skills; namespace XmdsCommonSkill.Plugin.Buffs { /// /// FileName: XmdsBuff_ChangeSkill.cs /// Author: Alex.Yu /// Corporation:... /// Description: /// DateTime: 2015/7/22 16:32:58 /// public class XmdsBuff_ChangeSkill : XmdsBuffBase { public List SkillList = null; public override int GetAbilityID() { return (int)XmdsCommon.Plugin.XmdsBuffProperties.XmdsBuffAbility.ChangeSkill; } public override void CopyTo(UnitBuff other) { if (SkillList != null) { var ret = other as XmdsBuff_ChangeSkill; ret.SkillList = new List(this.SkillList); this.SkillList.Clear(); this.SkillList = null; } base.CopyTo(other); } protected override void OnBuffBegin(XmdsCommonServer.Plugin.XmdsVirtual hitter, XmdsCommonServer.Plugin.XmdsVirtual attacker, CommonAI.Zone.Instance.InstanceUnit.BuffState state) { } protected override void OnBuffEnd(XmdsCommonServer.Plugin.XmdsVirtual hitter, CommonAI.Zone.Instance.InstanceUnit.BuffState state, bool replace) { } protected override void OnDispose() { if (SkillList != null) { SkillList.Clear(); } base.OnDispose(); } } }