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

31 lines
661 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.Ctx().Opp.SetProp(e.Ctx().Opp, 1, int8(e.SideEffectArgs[1]))
e.Ctx().Opp.SetProp(e.Ctx().Opp, 3, int8(e.SideEffectArgs[1]))
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 427, &Effect427{})
}