Files
bl/logic/service/fight/effect/1379.go
xinian d86b75408b
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
feat: 新增技能效果1378-1382
2026-04-02 23:32:21 +08:00

30 lines
648 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// Effect 1379: 自身不处于能力提升状态时50%的概率打出致命一击
type Effect1379 struct{ node.EffectNode }
func (e *Effect1379) SkillHit() bool {
if e.Ctx().SkillEntity == nil || e.Ctx().SkillEntity.Category() == info.Category.STATUS {
return true
}
if e.Ctx().Our.HasPropADD() {
return true
}
ok, _, _ := e.Input.Player.Roll(50, 100)
if ok {
e.Ctx().SkillEntity.XML.CritRate = 16
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 1379, &Effect1379{})
}