24 lines
657 B
C#
Executable File
24 lines
657 B
C#
Executable File
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;
|
|
}
|
|
}
|
|
}
|