using CommonLang; using XmdsCommonServer.Plugin; using XmdsCommonServer.Plugin.XmdsSkillTemplate.DamageCalculator; namespace XmdsCommonSkill.Plugin.FunctionEvent { /// /// 竞技场事件:一次性回血回蓝50%. /// public class XmdsBattleFunctionEvent_10005 : XmdsBattleFunctionEventBase { public static int EventID = 10005; private readonly int BuffValue_1 = 5000; // 一次性回血量:50%. //private readonly int BuffValue_2 = 5000; // 一次性回蓝量:50%. public override int GetEventID() { return EventID; } protected override void OnTriggerEvent(XmdsVirtual target, XmdsVirtual sender) { // 回血. float p = (BuffValue_1 / XmdsDamageCalculator.PERER); int v = CUtils.CastInt(p * target.MirrorProp.MaxHP); target.AddHP(v); //// 回蓝. //p = (BuffValue_2 / XmdsDamageCalculator.PERER); //v = CUtils.CastInt(p * target.mUnit.MaxMP); //target.AddMP(v); } } }