Files
bl/logic/service/fight/effect/193.go
xinian 73d7f7f062
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
feat: 新增战斗效果和修复登录逻辑
2026-03-08 11:22:00 +08:00

30 lines
578 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/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// 193 - 若对手XX则必定致命一击
type Effect193 struct {
node.EffectNode
}
func (e *Effect193) SkillHit() bool {
if e.Ctx().SkillEntity == nil {
return true
}
if e.Ctx().Opp.StatEffect_Exist(info.EnumPetStatus(e.Args()[0].IntPart())) { // 对手处于异常状态
// 设定必定暴击
e.Ctx().SkillEntity.CritRate = 16
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 193, &Effect193{})
}