Files
bl/logic/service/fight/effect/560.go
xinian 875ad668aa
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
feat: 实现战斗效果逻辑和接口重构
2026-03-28 21:57:22 +08:00

37 lines
666 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
)
// Effect 560: 下回合其他攻击技能附加{0}点固定伤害
type Effect560 struct {
RoundEffectArg0Base
triggered bool
}
func (n *Effect560) OnSkill() bool {
if !n.triggered {
n.triggered = true
} else {
// 添加固定伤害到技能伤害中
damageZone := &info.DamageZone{
Type: info.DamageType.Fixed,
Damage: n.Args()[0],
}
// 对对手造成额外固定伤害
n.Ctx().Opp.Damage(n.Ctx().Our, damageZone)
}
return true
}
// SetArgs 设置参数
func init() {
input.InitEffect(input.EffectType.Skill, 560, &Effect560{})
}