refactor(fight): 重构效果相关逻辑
- 修改 Effect 接口,增加 NotALive 方法 - 更新 EffectNode 结构,添加 NotALive 字段和 NotALive 方法 - 调整 Input 结构,使用 NotALive 方法处理效果消失逻辑 - 重构 PetEffectInfo 结构,修改
This commit is contained in:
@@ -35,6 +35,11 @@ func (this *EffectNode) ID() int {
|
||||
|
||||
return 0
|
||||
|
||||
}
|
||||
func (this *EffectNode) NotALive() {
|
||||
|
||||
this.NotAlive = true
|
||||
|
||||
}
|
||||
func (this *EffectNode) GetOwner() bool {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user