24 lines
656 B
C#
24 lines
656 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)
|
|||
|
{
|
|||
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|