12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- 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 CommonLang;
- namespace XmdsCommonSkill.Plugin.PassiveSkills.Remedy
- {
- /// <summary>
- /// boss通用被动 - 勇猛(攻击增加N%)
- /// </summary>
- class Boss_90101 : XmdsPassiveSkillBase
- {
- public static int ID = 90101;
- private static XmdsSkillValue damageValue;
- public override int SkillID {get{return ID;}}
- protected override void OnInit(GameSkill skillInfo, XmdsVirtual owner)
- {
- int AddAtk = CUtils.CastInt(owner.MirrorProp.MaxAttack * XmdsUnitProp.PER * damageValue.GetValue());
- owner.ChangeAttack(AddAtk);
- }
- protected override void OnInitSkillParam()
- {
- XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
- InitData(data, out damageValue, XmdsSkillData.XmdsSkillDataKey.DmgRate);
- }
- protected override void OnDispose(XmdsVirtual owner)
- {
-
- }
- }
- }
|