1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
-
- using CommonAI.data;
- using System;
- using System.Collections.Generic;
- using XmdsCommon.Plugin;
- using XmdsCommonServer.Plugin;
- using XmdsCommonServer.Plugin.XmdsSkillTemplate.Skills;
- using XmdsCommonSkill.Plugin.Buffs;
- using CommonAI.Zone.Formula;
- namespace XmdsCommonSkill.Plugin
- {
- public class XmdsBattleFunction : BattleFunction
- {
- public override int TriggrBattleFunction(int functionID, IVirtualUnit target, IVirtualUnit sender)
- {
- var evt = XmdsBattleSkill.GetBattleFunctionEvent(functionID);
- if (evt == null)
- {
- LogError(functionID.ToString());
- return 0;
- }
- else
- {
- return evt.TriggerEvent(target, sender == null ? target : sender);
- }
- }
- public override int TriggrBattleFunction(int functionID, CommonAI.Zone.Formula.IVirtualUnit target, int value1, int value2, int value3, int value4, int value5, int value6)
- {
- var evt = XmdsBattleSkill.GetBattleFunctionEvent(functionID);
- if (evt == null)
- {
- LogError(functionID.ToString());
- return 0;
- }
- else
- {
- return evt.TriggerEvent(target, value1, value2, value3, value4, value5, value6);
- }
- }
- }
- }
|