Files
bl/logic/service/fight/effect/1385.go
xinian 1a0e0b405a
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
feat: 添加自然祝福相关技能效果实现
实现1383-1387技能效果,包括自然祝福状态下的属性强化、自然祝福层数管理、护盾效果等
2026-04-03 11:19:20 +08:00

28 lines
567 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/input"
"blazing/logic/service/fight/node"
)
// Effect 1385: 消耗自身所有自然祝福每消耗1层则随机令对手1个技能PP值归零
type Effect1385 struct{ node.EffectNode }
func (e *Effect1385) OnSkill() bool {
if e.Ctx().Our == nil || e.Ctx().Opp == nil {
return true
}
layers := consumeNaturalBlessing(e.Ctx().Our)
if layers <= 0 {
return true
}
randomSkillPPZero(e.Ctx().Opp, layers)
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 1385, &Effect1385{})
}