Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
实现1383-1387技能效果,包括自然祝福状态下的属性强化、自然祝福层数管理、护盾效果等
28 lines
567 B
Go
28 lines
567 B
Go
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{})
|
||
}
|