From d52a9a05fa81061495a26b42180346987f0fecc8 Mon Sep 17 00:00:00 2001 From: 1 <1@72wo.cn> Date: Tue, 23 Sep 2025 17:35:50 +0000 Subject: [PATCH] =?UTF-8?q?refactor(fight/input):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BC=A4=E5=AE=B3=E6=95=88=E6=9E=9C=E8=8E=B7=E5=8F=96=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E7=A7=BB=E9=99=A4=E6=9C=AA=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF=E8=BF=94=E5=9B=9E=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logic/service/fight/input/input.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logic/service/fight/input/input.go b/logic/service/fight/input/input.go index 61ce85a5..402c94fc 100644 --- a/logic/service/fight/input/input.go +++ b/logic/service/fight/input/input.go @@ -27,7 +27,7 @@ type Input struct { func NewInput(c common.FightI, p common.PlayerI) *Input { ret := &Input{FightC: c, Player: p} - t, _ := ret.GetDamageEffect(1) + t:= ret.GetDamageEffect(1) ret.AddEffect(deepcopy.Copy(t).(Effect)) //添加默认基类,实现继承 p.SetFightC(c) //给玩家设置战斗容器 return ret