Monster_6100202.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. 
  2. using CommonAI.Zone;
  3. using XmdsCommon.Plugin;
  4. using XmdsCommonServer.Plugin;
  5. using XmdsCommonSkill.Plugin.Buffs;
  6. using XmdsCommonServer.XLS.Data;
  7. namespace XmdsCommonSkill.Plugin.Skills.Monster
  8. {
  9. /// <summary>
  10. /// 遗忘女王(欧拉米) - 冰霜之环:释放一个魔法冰环,对身边所有敌人造成x倍魔攻伤害和额外y点魔法伤害,并必定冻结他们3秒.
  11. /// </summary>
  12. public class Monster_6100202 : XmdsSkillBase
  13. {
  14. public static int ID = 6100202;
  15. public static XmdsSkillValue DP_1;
  16. public static int Buff_ID = (int)XmdsBuffBase.XmdsBuffList.BING_DONG;
  17. public override int SkillID { get { return ID; } }
  18. protected override void OnSkillDamagePerEvent(BattleParams param)
  19. {
  20. int ret = CalDamagePer(DP_1, param.GameSkill.SkillLevel);
  21. param.SkillDamagePer = ret;
  22. }
  23. protected override void OnInit(GameSkill info, XmdsVirtual unit, ref SkillTemplate template)
  24. {
  25. XmdsBuffPack pack = XmdsBuffFactory.GetInstance().GetXmdsBuffPack(Buff_ID);
  26. XmdsBuff_Frozen buff = (XmdsBuff_Frozen)pack.GetXmdsBuff(XmdsBuffProperties.XmdsBuffAbility.FROZEN);
  27. BuffTemplate bt = pack.mBuffTemplate;
  28. bt.IsHarmful = true;
  29. pack.BindTemplateAndDispose();
  30. unit.RegistSendBuff(bt);
  31. }
  32. protected override void OnInitSkillParam()
  33. {
  34. XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
  35. InitData(data, out DP_1, XmdsSkillData.XmdsSkillDataKey.DmgRate);
  36. }
  37. }
  38. }