编辑文件 effect_prop.go
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-09 01:20:57 +08:00
committed by cnb
parent 18fbfcf3cc
commit f3ada66c11

View File

@@ -19,10 +19,11 @@ func (e *Effect3) OnSkill() bool {
// 遍历六项能力值(攻击、防御、速度等)
for i := 0; i < 6; i++ {
if e.Reverse {
if e.Reverse&&i>0 {
// 对对手生效
e.Ctx().Opp.SetProp(e.Ctx().Our, int8(i), e.Level)
} else {
}
if !e.Reverse &&i<0{
// 对自己生效
e.Ctx().Our.SetProp(e.Ctx().Our, int8(i), e.Level)
}