S9012.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using CombatLibrary.CombatLibrary.CombatCore.CustomizeTimeLogic.FxLogic;
  2. using GameLogic.Combat.Buff;
  3. using GameLogic.Combat.CombatTool;
  4. using GameLogic.Combat.Hero;
  5. using UnityEngine;
  6. using UTool.CustomizeTimeLogic.FxLogic.TimeLineEventinterface;
  7. namespace GameLogic.Combat.Skill
  8. {
  9. /// <summary>
  10. /// 凤凰张口喷吐出一股极寒霜息,形成远程席卷的寒潮波涛。直线飞行,只会有一个,对敌人造成{0}伤害,并额外造成寒气层数*{1}的伤害
  11. /// </summary>
  12. public class S9012 : SkillBasic
  13. {
  14. protected override void ProUseSkill()
  15. {
  16. SpecialDotInfo specialDotInfo = CombatHeroEntity.GetSpecialDotInfo("zdpos2");
  17. ActivationTimeLineData("9012",
  18. customizePos: new Vector3[] { specialDotInfo.GetWorlPos() });
  19. }
  20. protected override void ProDefaultTimeLineTrigger(string groupName, CombatHeroHitPoint targetEntity,
  21. ITimelineFxLogic timelineFxLogic,
  22. TriggerData triggerData, ISkillFeatures skillFeatures)
  23. {
  24. float harmBl = effectValue[0];
  25. b_1001 b1001 = targetEntity.combatHeroEntity.BuffControl.GetBuffBasicForType<b_1001>();
  26. if (b1001 != null)
  27. {
  28. harmBl += b1001.buffCount * effectValue[1];
  29. }
  30. long v = CombatCalculateTool.Instance.GetVlaueRatioForLong(CombatHeroEntity.CurrCombatHeroInfo.attack.Value,
  31. harmBl);
  32. HarmReturnInfo harmReturnInfo = CombatCalculateTool.Instance.Harm(CombatHeroEntity, targetEntity, v,
  33. AttType.Skill, triggerData,
  34. wuXingType, skillFeatures,
  35. HarmType.Default);
  36. }
  37. }
  38. }