12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using CommonAI.Zone;
- using CommonAI.Zone.Helper;
- using CommonAI.Zone.Instance;
- using System;
- using XmdsCommon.Plugin;
- using XmdsCommonServer.Plugin;
- using XmdsCommonServer.Plugin.XmdsSkillTemplate.Skills;
- using XmdsCommonServer.XLS.Data;
- using XmdsCommonSkill.Plugin.Buffs;
- using XmdsCommonSkill.Plugin.PassiveSkills.Magic;
- using static CommonAI.Zone.Instance.InstanceUnit;
- using static XmdsCommonSkill.Plugin.Buffs.XmdsBuff_SwordShadow;
- namespace XmdsCommonSkill.Plugin.Skills.Magic
- {
- /// <summary>
- /// 交叉型
- /// </summary>
- public class Skill_910020 : XmdsSkillBase
- {
- private static readonly int ID = 910020;
- public override int SkillID { get { return ID; } }
- //当前释放帧
- private int mLaunchIndex;
- protected override void OnInit(GameSkill info, XmdsVirtual unit, ref SkillTemplate template)
- {
- unit.RegistTryLaunchSkillEvent(OnTryLaunchSkillEventHandle, info);
- unit.RegistLaunchSkillOver(OnLaunchSkillOver, info);
- }
- private bool OnTryLaunchSkillEventHandle(GameSkill skillInfo, ref InstanceUnit.SkillState skill, XmdsVirtual launcher, ref InstanceUnit.LaunchSkillParam param)
- {
- this.mLaunchIndex = launcher.mUnit.RandomN.Next() % 2;
- skill.LockActionStep = this.mLaunchIndex;
- return true;
- }
- private int OnLaunchSkillOver(GameSkill info, XmdsCommonServer.Plugin.XmdsVirtual launcher, CommonAI.Zone.Instance.InstanceUnit.SkillState skill)
- {
- skill.LockActionStep = this.mLaunchIndex;
- return 0;
- }
- protected override void OnInitSkillParam()
- {
- XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
- //InitData(data, out mDamageRate, XmdsSkillData.XmdsSkillDataKey.DmgRate);
- }
- }
- }
|