refactor(fight): 重构效果相关逻辑

- 修改 Effect 接口,增加 NotALive 方法
- 更新 EffectNode 结构,添加 NotALive 字段和 NotALive 方法
- 调整 Input 结构,使用 NotALive 方法处理效果消失逻辑
- 重构 PetEffectInfo 结构,修改
This commit is contained in:
2025-09-15 22:45:04 +08:00
parent 992c71fe6d
commit 8cee54ad8f
4 changed files with 16 additions and 60 deletions

View File

@@ -35,6 +35,11 @@ func (this *EffectNode) ID() int {
return 0
}
func (this *EffectNode) NotALive() {
this.NotAlive = true
}
func (this *EffectNode) GetOwner() bool {