编辑文件 effect_prop.go
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user