refactor(fight/input): 优化伤害效果获取逻辑,移除未使用的错误返回值
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user