Boss_91103_unused.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. using CommonAI.Zone.Helper;
  2. using CommonAI.Zone.Instance;
  3. using XmdsCommonServer.Plugin;
  4. using XmdsCommonServer.XLS.Data;
  5. using XmdsCommonSkill.Plugin.Buffs;
  6. using System;
  7. using static CommonAI.Zone.Instance.InstanceUnit;
  8. using XmdsCommon.Plugin;
  9. using CommonAI.Zone;
  10. using XmdsCommonServer.Plugin.Units;
  11. using CommonAI.Zone.Formula;
  12. using XmdsCommonSkill.Plugin.Skills;
  13. using XmdsCommonServer.Plugin.XmdsSkillTemplate.DamageCalculator;
  14. using XmdsCommonServer.Plugin.XmdsSkillTemplate.Skills;
  15. using CommonLang;
  16. namespace XmdsCommonSkill.Plugin.PassiveSkills.Remedy
  17. {
  18. /// <summary>
  19. /// boss - 3 - 双生(两个BOSS必须在30秒内同时死亡,否则先死的BOSS会满血复活) - 编辑器处理,这里暂时屏蔽
  20. /// </summary>
  21. //class Boss_91103 : XmdsPassiveSkillBase
  22. //{
  23. // public static readonly int ID = 91103;
  24. //private int mUUID_1 = 0;
  25. //private XmdsVirtual mOwner;
  26. //private int timePass = 0; //时间流逝
  27. //private int partnerDeadTime = 0; //伴侣死亡时间
  28. //private int partnerID = 0;
  29. //伴生ID
  30. // private static int [] UnitID = { 570011, 570012};
  31. //public override int SkillID {get{return ID;}}
  32. //protected override void OnInit(GameSkill skillInfo, XmdsVirtual owner)
  33. //{
  34. // this.mOwner = owner;
  35. // for (int i = 0; i < UnitID.Length; i++)
  36. // {
  37. // if(UnitID[i] != owner.mUnit.Info.TemplateID)
  38. // {
  39. // this.partnerID = UnitID[i];
  40. // break;
  41. // }
  42. // }
  43. //}
  44. //protected override void OnUpdate(int intervalMS)
  45. // {
  46. // base.OnUpdate(intervalMS);
  47. // this.timePass += intervalMS;
  48. // if (this.timePass >= 2000)
  49. // {
  50. // InstanceUnit unit = null;
  51. // //伴侣没有死亡时间,就找一下伴侣还在不在
  52. // if (this.partnerDeadTime <= 0)
  53. // {
  54. // unit = this.mOwner.mUnit.Parent.getUnitByID(this.partnerID);
  55. // }
  56. // if(unit == null)
  57. // {
  58. // this.partnerDeadTime += this.timePass;
  59. // if(this.partnerDeadTime >= 30000)
  60. // {
  61. // this.partnerDeadTime = 0;
  62. // //伴侣直接在身边复活
  63. // UnitInfo info = XmdsBattleSkill.GetUnitInfo(this.partnerID);
  64. // this.mOwner.mUnit.Parent.AddUnit(info, info.Name, this.mOwner.mUnit.Force, this.mOwner.mUnit.Level,
  65. // this.mOwner.mUnit.X, this.mOwner.mUnit.Y, this.mOwner.mUnit.Direction, this.mOwner.mUnit);
  66. // }
  67. // }
  68. // this.timePass = 0;
  69. // }
  70. //}
  71. //protected override void OnDispose(XmdsVirtual owner)
  72. //{
  73. // owner.UnRegistTryLaunchSkillEvent(mUUID_1);
  74. // }
  75. // }
  76. }