123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using XmdsCommon.Plugin;
- using XmdsCommonServer.Plugin.XmdsSkillTemplate.Skills;
- namespace XmdsCommonSkill.Plugin.Buffs
- {
- /// <summary>
- /// FileName: XmdsBuff_ChangeSkill.cs
- /// Author: Alex.Yu
- /// Corporation:...
- /// Description:
- /// DateTime: 2015/7/22 16:32:58
- /// </summary>
- public class XmdsBuff_ChangeSkill : XmdsBuffBase
- {
- public List<GameSkill> 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<GameSkill>(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();
- }
- }
- }
|