test(fight): 修复战斗测试中的技能施放逻辑

- 在 BattleSystem 测试函数中添加了返回语句,避免后续代码执行
- 此修改确保了测试的正确性和稳定性
This commit is contained in:
2025-08-11 21:50:03 +08:00
parent 719c9c3f0b
commit b6ef625524

View File

@@ -289,7 +289,7 @@ func TestBattleSystem(t *testing.T) {
enemy := NewBattleUnit("盖亚", 100, 280, 220, 300)
ctx := &BattleContext{Rand: r}
return
// 玩家技能:普通攻击 + 附加恢复buff持续3回合
playerSkill := &Skill{
Name: "雷光闪",