refactor: 重构战斗结构体以支持双打模式

This commit is contained in:
xinian
2026-04-04 22:13:42 +08:00
committed by cnb
parent 7916f90992
commit 39e1d4c42f
16 changed files with 543 additions and 246 deletions

View File

@@ -38,8 +38,11 @@ func (e *EffectNode) OnSkill() bool {
}
func (e *EffectNode) Skill_Can() bool {
return e.Input.CurPet[0].HP != 0
currentPet := e.Input.CurrentPet()
if currentPet == nil {
return false
}
return currentPet.HP != 0
}
func (e *EffectNode) GenSub(t input.Effect, Duration int) input.Effect {