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

39 lines
681 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
)
/**
* 439
*/
func init() {
input.InitEffect(input.EffectType.Skill, 439, &Effect439{})
}
// Effect 439: {0}回合内若自身处于能力下降或异常状态,则对手每回合受到{1}点固定伤害
type Effect439 struct {
RoundEffectSideArg0Base
}
func (e *Effect439) Skill_Use() bool {
var isprop bool
for _, v := range e.Ctx().Our.Prop {
if v < 0 {
isprop = true
}
}
if e.Ctx().Our.StatEffect_Exist_all() || isprop {
e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{
Type: info.DamageType.Fixed,
Damage: e.Args()[1],
})
}
return true
}