Skill_910010.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using CommonAI.Zone;
  2. using CommonAI.Zone.Helper;
  3. using CommonAI.Zone.Instance;
  4. using System;
  5. using XmdsCommon.Plugin;
  6. using XmdsCommonServer.Plugin;
  7. using XmdsCommonServer.Plugin.XmdsSkillTemplate.Skills;
  8. using XmdsCommonServer.XLS.Data;
  9. using XmdsCommonSkill.Plugin.Buffs;
  10. using XmdsCommonSkill.Plugin.PassiveSkills.Magic;
  11. using static CommonAI.Zone.Instance.InstanceUnit;
  12. using static XmdsCommonSkill.Plugin.Buffs.XmdsBuff_SwordShadow;
  13. namespace XmdsCommonSkill.Plugin.Skills.Magic
  14. {
  15. /// <summary>
  16. /// 自爆法术
  17. /// </summary>
  18. public class Skill_910010 : XmdsSkillBase
  19. {
  20. private static readonly int ID = 910010;
  21. public override int SkillID { get { return ID; } }
  22. //伤害系数
  23. private static XmdsSkillValue mDamageRate;
  24. protected override void OnInit(GameSkill info, XmdsVirtual unit, ref SkillTemplate template)
  25. {
  26. }
  27. protected override void OnSkillDamagePerEvent(BattleParams param)
  28. {
  29. param.SkillDamagePer = mDamageRate.GetValue();
  30. }
  31. protected override void OnSkillLogicEvent(BattleParams param)
  32. {
  33. //param.UseDamageType = CommonAI.Data.DamageType.None;
  34. // 触碰到,自爆
  35. param.Attacker.AddHP(-param.Attacker.MirrorProp.MaxHP, param.Attacker.mUnit);
  36. }
  37. protected override void OnInitSkillParam()
  38. {
  39. XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
  40. InitData(data, out mDamageRate, XmdsSkillData.XmdsSkillDataKey.DmgRate);
  41. }
  42. }
  43. }