Dungeon_911000.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using CommonAI.Data;
  2. using CommonAI.Zone;
  3. using CommonAI.Zone.Helper;
  4. using CommonAI.Zone.Instance;
  5. using CommonLang;
  6. using System;
  7. using System.Collections.Generic;
  8. using XmdsCommon.Plugin;
  9. using XmdsCommonServer.Plugin;
  10. using XmdsCommonServer.Plugin.XmdsSkillTemplate.Skills;
  11. using XmdsCommonServer.XLS.Data;
  12. using XmdsCommonSkill.Plugin.Buffs;
  13. using XmdsCommonSkill.Plugin.Interface;
  14. using XmdsCommonSkill.Plugin.PassiveSkills.Magic;
  15. using static CommonAI.Zone.Instance.InstanceUnit;
  16. using static XmdsCommonSkill.Plugin.Buffs.XmdsBuff_SwordShadow;
  17. using static XmdsCommonSkill.Plugin.Interface.ComSpellTemplate;
  18. using static XmdsCommonSkill.Plugin.Skills.XmdsSummonBase;
  19. namespace XmdsCommonSkill.Plugin.Skills.Magic
  20. {
  21. /// <summary>
  22. ///蛛网召唤
  23. /// </summary>
  24. public class Dungeon_911000 : XmdsSummonBase_PassiveSkill
  25. {
  26. public static readonly int ID = 911000;
  27. public override int SkillID { get { return ID; } }
  28. private int mRefreshCD;
  29. private int mTimePass;
  30. protected override void OnUpdate(int intervalMS, bool slowRefresh)
  31. {
  32. this.mTimePass += intervalMS;
  33. if(this.mRefreshCD > 0 && this.mTimePass > this.mRefreshCD)
  34. {
  35. this.mTimePass = 0;
  36. base.SummonUnit();
  37. }
  38. }
  39. protected override void DoInitConfig()
  40. {
  41. XmdsSkillData data = base.InitSummonConfig(SummonType.MoveToMaster);
  42. XmdsSkillValue value1;
  43. InitData(data, out value1, XmdsSkillData.XmdsSkillDataKey.CDTime);
  44. this.mRefreshCD = value1.GetValue();
  45. }
  46. }
  47. }