b_1005.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Common.Utility.CombatEvent;
  2. using Fort23.Core;
  3. using GameLogic.Combat.CombatTool;
  4. using GameLogic.Player;
  5. namespace GameLogic.Combat.Buff
  6. {
  7. /// <summary>
  8. /// 灼热:每秒对敌人照成火属性灼烧伤害
  9. /// </summary>
  10. public class b_1005 : BuffBasic
  11. {
  12. private float _time;
  13. protected override void ProInit()
  14. {
  15. }
  16. protected override void ProUpdate(float t)
  17. {
  18. _time += t;
  19. if (_time >= 1)
  20. {
  21. _time -= 1;
  22. float harmbl = buffCount * buffInf.BuffConfig.effectValue[0];
  23. long harm = CombatCalculateTool.Instance.GetVlaueRatioForLong(
  24. source.CurrCombatHeroInfo.attack.Value, harmbl);
  25. CombatCalculateTool.Instance.Harm(source, combatHeroEntity, harm, AttType.Buff, _triggerData,
  26. WuXingType.Fire,HarmType.Buff);
  27. }
  28. }
  29. protected override void ProDormancyObj()
  30. {
  31. }
  32. }
  33. }