zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Hotfix/Game/Event/Battle/BattleSkillEvent.cs

24 lines
656 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)
{
var unit = args.targetUnit;
M2C_BattleSkillRet skillRet = new M2C_BattleSkillRet()
{
UnitId = args.targetUnit.Id,
IsCrit = args.IsCrit,
ChangeHpValue = args.HpValue,
};
unit.GetComponent<BrocastComponent>().BrocastInterval(skillRet);
await ETTask.CompletedTask;
}
}
}