Files
bl/logic/service/fight/effect/483.go
xinian 1e37d71878
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
fix: 修复属性设置逻辑
2026-03-17 10:57:11 +08:00

31 lines
511 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"
)
// 483 - -1 -1 -1 -1 -1 -1后出手时弱化效果翻倍
type Effect483 struct {
node.EffectNode
}
func (e *Effect483) OnSkill() bool {
for i, v := range e.SideEffectArgs {
if !e.IsFirst() { // 后出手
v = v * 2
}
if v == 0 {
continue
}
e.Ctx().Opp.SetProp(e.Ctx().Our, int8(i), int8(v))
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 483, &Effect483{})
}