1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using CommonAI.Zone;
- using CommonAI.Zone.Helper;
- using CommonAI.Zone.Instance;
- using CommonLang;
- using XmdsCommon.Plugin;
- using XmdsCommonServer.Plugin;
- using XmdsCommonServer.Plugin.XmdsSkillTemplate.Skills;
- using XmdsCommonServer.XLS.Data;
- using XmdsCommonSkill.Plugin.Buffs;
- using XmdsCommonSkill.Plugin.Interface;
- using XmdsCommonSkill.Plugin.PassiveSkills.Magic;
- using XmdsCommonSkill.Plugin.PassiveSkills.Remedy;
- using static CommonAI.Zone.Instance.InstanceUnit;
- using static XmdsCommonSkill.Plugin.Interface.ComSpellTemplate;
- namespace XmdsCommonSkill.Plugin.Skills.Remedy
- {
-
-
-
- public abstract class RemedySkillBase : XmdsSkillBase
- {
-
- protected XmdsSkillValue mPoisionValue;
-
- protected override void OnInit(GameSkill info, XmdsVirtual unit, ref SkillTemplate template)
- {
- base.OnInit(info, unit, ref template);
- var playerTalent = unit.GetPlayerCache() as PlayerCache_Remedy;
- if(playerTalent == null)
- {
-
- return;
- }
- playerTalent.SetSkillPoisonRate(new IntIntData(mPoisionValue.GetValue(1), mPoisionValue.GetValue(2)), this.SkillID);
- }
- protected void InitBaseConfig(XmdsSkillData data)
- {
- InitData(data, out mPoisionValue, XmdsSkillData.XmdsSkillDataKey.TalentData);
- }
- }
- }
|