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

28 lines
767 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using ET.EventType;
using System;
using System.Collections.Generic;
namespace ET
{
public class ChangeBuffStateEvent : AEvent<EventType.BuffStateRet>
{
public override async ETTask Run(BuffStateRet args)
{
var unit = args.targetUnit;
M2C_BattleChangeState changeHp = new M2C_BattleChangeState()
{
2021-04-10 19:49:32 +08:00
Id=args.Id,
2021-04-08 20:09:59 +08:00
TargetUnitId = args.targetUnit.Id,
IconId = args.IconId,
IconDesc = args.IconDesc,
Time = args.time,
IsBuff =args.isBuff,
Type = args.type
};
unit.GetComponent<BrocastComponent>().Brocast(changeHp);
await ETTask.CompletedTask;
}
}
}