12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using CommonAI.Zone;
- using XmdsCommon.Plugin;
- using XmdsCommonServer.Plugin;
- using XmdsCommonSkill.Plugin.Buffs;
- using XmdsCommonServer.XLS.Data;
- namespace XmdsCommonSkill.Plugin.Skills.Monster
- {
- // 维希度斯 - 地面震击:震击地面,对身边N米所有敌人造成x%倍物攻伤害和额外y点物理伤害,并使他们被眩晕3秒.
- public class Monster_10510402 : XmdsSkillBase
- {
- public static int ID = 10510402;
- public static XmdsSkillValue DP_1;
- public static int Buff_1 = (int)XmdsBuffBase.XmdsBuffList.YUN_XUAN; // 眩晕.
- public override int SkillID { get { return ID; } }
- protected override void OnSkillDamagePerEvent(BattleParams param)
- {
- int ret = CalDamagePer(DP_1, param.GameSkill.SkillLevel);
- param.SkillDamagePer = ret;
- }
- protected override void OnSkillLogicEvent(BattleParams param)
- {
- BuffTemplate bt = param.Attacker.GetRegistBuff(Buff_1);
- bt.LifeTimeMS = 5000;
- bt.IsHarmful = true;
- // 被撞到的人眩晕.
- param.Hitter.mUnit.AddBuff(Buff_1, param.Attacker.mUnit);
- }
- /// <summary>
- /// 初始化.
- /// </summary>
- /// <param name="info"></param>
- /// <param name="unit"></param>
- /// <param name="template"></param>
- protected override void OnInit(GameSkill info, XmdsVirtual unit, ref SkillTemplate template)
- {
- //技能初始化,常用作为修改BUFF能力等等.
- XmdsBuffPack pack = XmdsBuffFactory.GetInstance().GetXmdsBuffPack(Buff_1);
- BuffTemplate bt = pack.mBuffTemplate;
- pack.BindTemplateAndDispose();
- unit.RegistSendBuff(bt);
- }
- protected override void OnInitSkillParam()
- {
- XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
- InitData(data, out DP_1, XmdsSkillData.XmdsSkillDataKey.DmgRate);
- }
- }
- }
|