修复大乱斗问题
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-20 09:40:22 +08:00
parent 58440d5993
commit 53b18cfd0c
6 changed files with 37 additions and 17 deletions

View File

@@ -38,8 +38,8 @@ func CreateBattlePetEntity(info model.PetInfo, rand *rand.Rand) *BattlePetEntity
for i := 0; i < len(info.SkillList); i++ {
//todo 技能信息应该每回合进行深拷贝,保证每次的技能效果都是不一样的
ret.Skills[info.SkillList[i].ID] = CreateSkill(&info.SkillList[i], rand, ret)
// ret.Skills[info.SkillList[i].ID] = CreateSkill(&info.SkillList[i], rand, ret)
ret.Skills = append(ret.Skills, CreateSkill(&info.SkillList[i], rand, ret))
}
return ret