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

24 lines
657 B
C#

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)
{
Unit 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;
}
}
}