feat: 新增多个战斗效果并修复逻辑问题
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-07 14:51:32 +08:00
committed by cnb
parent 02629b6f6c
commit de8ce9fc81
8 changed files with 210 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
package effect
import (
"blazing/logic/service/fight/action"
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/node"
)
type Effect154 struct {
node.EffectNode
}
func init() {
initskill(154, &Effect154{})
}
// 命中之后
func (e *Effect154) OnSkill() bool {
if e.Ctx().Opp.StatEffect_Exist(info.EnumPetStatus(e.Args()[0].IntPart())) {
e.Input.Heal(
e.Ctx().Our, &action.SelectSkillAction{}, e.Ctx().Our.SumDamage.Div(e.Args()[1]),
)
}
return true
}