CTT/Server/Hotfix/Game/Event/Battle/BattleSkillEvent.cs

24 lines
657 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using ET;
using System;
using System.Collections.Generic;
using System.Text;
namespace ET
{
public class BattleSkillRetEvent : AEvent<EventType.BattleSkillRet>
{
public override async ETTask Run(EventType.BattleSkillRet args)
{
2021-04-11 19:50:39 +08:00
Unit unit = args.targetUnit;
2021-04-08 20:09:59 +08:00
M2C_BattleSkillRet skillRet = new M2C_BattleSkillRet()
{
UnitId = args.targetUnit.Id,
IsCrit = args.IsCrit,
ChangeHpValue = args.HpValue,
};
unit.GetComponent<BrocastComponent>().BrocastInterval(skillRet);
await ETTask.CompletedTask;
}
}
}