refactor(effect): 更新状态枚举类型为 EnumPetStatus

将多个技能效果文件中的 EnumBattleStatus 类型统一更新为 EnumPetStatus,
以更准确地反映其用途。同时修改了相关函数签名和变量声明。

此外,清理了部分注释格式,并补充了关于被动效果不能被免疫的说明。
```
This commit is contained in:
2025-11-14 00:26:34 +08:00
parent 3377c6f0a3
commit 55ff5c6119
16 changed files with 444 additions and 33 deletions

View File

@@ -0,0 +1,34 @@
package effect
import (
"blazing/logic/service/fight/action"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
"github.com/shopspring/decimal"
)
/**
* 给予对象损伤1/n会回复自己的体力
*/
type Effect105 struct {
node.EffectNode
}
func init() {
input.InitEffect(input.EffectType.Skill, 105, &Effect105{})
}
// 命中之后
func (e *Effect105) OnSkill() bool {
if !e.Hit() {
return true
}
e.Input.Heal(
e.Ctx().Our, &action.SelectSkillAction{}, e.Ctx().Our.DamageZone.Damage.Div(decimal.NewFromInt(int64(e.Args()[0]))),
)
return true
}