12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- using CommonAI.Zone.Helper;
- using CommonAI.Zone.Instance;
- using XmdsCommonServer.Plugin;
- using XmdsCommonServer.XLS.Data;
- using XmdsCommonSkill.Plugin.Buffs;
- using System;
- using static CommonAI.Zone.Instance.InstanceUnit;
- using XmdsCommon.Plugin;
- using CommonAI.Zone;
- using XmdsCommonServer.Plugin.Units;
- using CommonAI.Zone.Formula;
- using XmdsCommonSkill.Plugin.Skills;
- using XmdsCommonServer.Plugin.XmdsSkillTemplate.DamageCalculator;
- using XmdsCommonServer.Plugin.XmdsSkillTemplate.Skills;
- using CommonLang;
- namespace XmdsCommonSkill.Plugin.PassiveSkills.Remedy
- {
- /// <summary>
- /// boss - 3 - 双生(两个BOSS必须在30秒内同时死亡,否则先死的BOSS会满血复活) - 编辑器处理,这里暂时屏蔽
- /// </summary>
- //class Boss_91103 : XmdsPassiveSkillBase
- //{
- // public static readonly int ID = 91103;
- //private int mUUID_1 = 0;
- //private XmdsVirtual mOwner;
- //private int timePass = 0; //时间流逝
- //private int partnerDeadTime = 0; //伴侣死亡时间
- //private int partnerID = 0;
- //伴生ID
- // private static int [] UnitID = { 570011, 570012};
- //public override int SkillID {get{return ID;}}
- //protected override void OnInit(GameSkill skillInfo, XmdsVirtual owner)
- //{
- // this.mOwner = owner;
- // for (int i = 0; i < UnitID.Length; i++)
- // {
- // if(UnitID[i] != owner.mUnit.Info.TemplateID)
- // {
- // this.partnerID = UnitID[i];
- // break;
- // }
- // }
- //}
- //protected override void OnUpdate(int intervalMS)
- // {
- // base.OnUpdate(intervalMS);
- // this.timePass += intervalMS;
- // if (this.timePass >= 2000)
- // {
- // InstanceUnit unit = null;
- // //伴侣没有死亡时间,就找一下伴侣还在不在
- // if (this.partnerDeadTime <= 0)
- // {
- // unit = this.mOwner.mUnit.Parent.getUnitByID(this.partnerID);
- // }
- // if(unit == null)
- // {
- // this.partnerDeadTime += this.timePass;
- // if(this.partnerDeadTime >= 30000)
- // {
- // this.partnerDeadTime = 0;
- // //伴侣直接在身边复活
- // UnitInfo info = XmdsBattleSkill.GetUnitInfo(this.partnerID);
- // this.mOwner.mUnit.Parent.AddUnit(info, info.Name, this.mOwner.mUnit.Force, this.mOwner.mUnit.Level,
- // this.mOwner.mUnit.X, this.mOwner.mUnit.Y, this.mOwner.mUnit.Direction, this.mOwner.mUnit);
- // }
- // }
- // this.timePass = 0;
- // }
-
- //}
- //protected override void OnDispose(XmdsVirtual owner)
- //{
- // owner.UnRegistTryLaunchSkillEvent(mUUID_1);
- // }
- // }
- }
|