```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

fix(fight): 修复战斗效果数值符号错误

在技能效果501中,修正了属性设置时effectValue的符号问题,
现在正确地应用负值效果。同时调整了代码格式以保持一致性。
```
This commit is contained in:
昔念
2026-03-20 15:49:56 +08:00
parent 90b62b44e4
commit 05c5f105e9

View File

@@ -15,9 +15,9 @@ func (e *Effect501) Skill_Use_ex() bool {
damageDone := e.Ctx().Our.SumDamage
if damageDone.IntPart() < int64(damageThreshold) {
effectType := int8(e.Args()[1].IntPart()) // XX类型
effectType := int8(e.Args()[1].IntPart()) // XX类型
effectValue := int8(e.Args()[2].IntPart()) // 等级-n
e.Ctx().Opp.SetProp(e.Ctx().Our, effectType, effectValue)
e.Ctx().Opp.SetProp(e.Ctx().Our, effectType, -effectValue)
}