Files
bl/logic/service/fight/effect/440.go
昔念 bd09013d85
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
```
fix(fight): 修复技能效果ID配置错误

- 修复NewSeIdx_66.go中空指针检查,避免程序崩溃
- 修正effect/407.go中技能ID从138改为407
- 修正effect/440.go中技能ID从138改为440,并修复类型引用错误
- 修正effect/523.go中属性设置对象错误,从Ctx().Opp改为Ctx().Our
- 修正effect_517.go中技能ID从452改为517
```
2026-03-11 23:38:51 +08:00

36 lines
728 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// 440 - n回合内对手使用技能消耗的PP值变为m倍
type Effect440 struct {
node.EffectNode
}
func (e *Effect440) Skill_Use() bool {
// 创建一个延迟生效的效果,在下一回合开始生效
e.Ctx().Opp.AddEffect(e.Ctx().Our, e.GenSub(&Effect440_sub{
m: int(e.Args()[1].IntPart()),
}, int(e.Args()[0].IntPart())))
return true
}
type Effect440_sub struct {
node.EffectNode
m int
}
func (e *Effect440_sub) HookPP(count *int) bool {
*count *= e.m // 把t指向的值取反直接作用于外部变量
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 440, &Effect440{})
}