refactor(fight/input): 优化伤害效果获取逻辑,移除未使用的错误返回值

This commit is contained in:
1
2025-09-23 17:35:50 +00:00
parent 1245471129
commit d52a9a05fa

View File

@@ -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