fix: 修复宠物存活状态判定逻辑
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

移除 `NotAlive` 字段,改用 `Alive()` 方法通过 HP 判断存活状态,修正相关效果触发逻辑。
This commit is contained in:
xinian
2026-03-17 13:34:50 +08:00
committed by cnb
parent 1e37d71878
commit 937ddd0a97
11 changed files with 99 additions and 18 deletions

View File

@@ -37,7 +37,7 @@ func (e *Effect72) SkillHit() bool {
Type: info.DamageType.True,
Damage: alpacadecimal.NewFromInt(int64(e.Ctx().Our.CurrentPet.Info.Hp)),
})
e.Ctx().Our.CurrentPet.NotAlive = true
return true
}