feat: 实现战斗效果逻辑和接口重构
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed

This commit is contained in:
xinian
2026-03-28 21:57:22 +08:00
committed by cnb
parent 0780eae582
commit 875ad668aa
332 changed files with 2062 additions and 1442 deletions

View File

@@ -7,7 +7,7 @@ import (
"blazing/logic/service/fight/node"
)
// 475 - 若造成的伤害不足m则下n回合的攻击必定致命一击
// Effect 475: 若造成的伤害不足{0},则下{1}回合的攻击必定致命一击
type Effect475 struct {
node.EffectNode
damageThreshold int
@@ -21,7 +21,7 @@ func (e *Effect475) Skill_Use() bool {
if damageDone.IntPart() < int64(damageThreshold) {
critDuration := int(e.Args()[1].IntPart())
e.Ctx().Our.AddEffect(e.Ctx().Our, e.GenSub(&Effect475_sub{}, critDuration))
addSubEffect(e.Ctx().Our, e.Ctx().Our, &e.EffectNode, &Effect475_sub{}, critDuration)
}