1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 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_910010 : XmdsSkillBase
- {
- private static readonly int ID = 910010;
- public override int SkillID { get { return ID; } }
- //伤害系数
- private static XmdsSkillValue mDamageRate;
- protected override void OnInit(GameSkill info, XmdsVirtual unit, ref SkillTemplate template)
- {
-
- }
- protected override void OnSkillDamagePerEvent(BattleParams param)
- {
- param.SkillDamagePer = mDamageRate.GetValue();
- }
- protected override void OnSkillLogicEvent(BattleParams param)
- {
- //param.UseDamageType = CommonAI.Data.DamageType.None;
- // 触碰到,自爆
- param.Attacker.AddHP(-param.Attacker.MirrorProp.MaxHP, param.Attacker.mUnit);
- }
- protected override void OnInitSkillParam()
- {
- XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
- InitData(data, out mDamageRate, XmdsSkillData.XmdsSkillDataKey.DmgRate);
- }
- }
- }
|