Files
bl/logic/service/fight/effect/427.go
xinian 78a68148ce
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
chore: update fight logic and effect implementations
2026-04-05 02:25:44 +08:00

31 lines
677 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
)
// Effect 427: {0}回合内每次直接攻击都会使对手防御和特防{1}
type Effect427 struct {
RoundEffectArg0Base
}
func (e *Effect427) Skill_Use() bool {
if e.Ctx().SkillEntity == nil {
return true
}
if e.Ctx().SkillEntity != nil && e.Ctx().SkillEntity.Category() != info.Category.STATUS {
// 降低对手防御
e.TargetInput().SetProp(e.TargetInput(), 1, int8(e.SideEffectArgs[1]))
e.TargetInput().SetProp(e.TargetInput(), 3, int8(e.SideEffectArgs[1]))
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 427, &Effect427{})
}