|
@@ -104,6 +104,10 @@ namespace Game
|
|
|
var attackCockActionComp = _gameCore.GetCockActionCompByPlayerId(log.from);
|
|
|
attackCockActionComp.SetHighJump(i == 0);
|
|
|
var counterattackCockActionComp = _gameCore.GetCockActionCompByPlayerId(log.to);
|
|
|
+ var counterattackPlayer = _gameCore.localPlayer.playerId == log.to
|
|
|
+ ? _gameCore.localPlayer
|
|
|
+ : _gameCore.antiPlayer;
|
|
|
+ counterattackPlayer.runTimeHp -= log.value;
|
|
|
if (i == 0 && log.value == 0) // 攻击落空了
|
|
|
{
|
|
|
counterattackCockActionComp.CreateMiss();
|