using XmdsCommonServer.Plugin; namespace XmdsCommonSkill.Plugin.Buffs { public class Xmds_Fridge : XmdsBuffBase { public override int GetAbilityID() { return (int)XmdsCommon.Plugin.XmdsBuffProperties.XmdsBuffAbility.Fridge; } protected override void OnBuffBegin(XmdsCommonServer.Plugin.XmdsVirtual hitter, XmdsCommonServer.Plugin.XmdsVirtual attacker, CommonAI.Zone.Instance.InstanceUnit.BuffState state) { //通过编辑器设置无敌效果. XmdsVirtual.FormatLog("单位 {0} 冰箱开始", hitter.mInfo.Name); hitter.IsInvincible = true; } protected override void OnBuffEnd(XmdsCommonServer.Plugin.XmdsVirtual hitter, CommonAI.Zone.Instance.InstanceUnit.BuffState state, bool replace) { XmdsVirtual.FormatLog("单位 {0} 冰箱解除", hitter.mInfo.Name); hitter.IsInvincible = false; } } }