feat(fight): 实现属性变化还原机制并优化属性操作逻辑
- 为多个效果(effect_38、effect_45、effect_51、effect_55、effect_56)添加 `Alive` 方法, 用于在效果结束时还原精灵被修改的属性(如 MaxHp、Prop[0]、Prop[1]、PetInfo.Type)。 - 统一将对精灵属性类型的访问由 `PType` 修改为 `PetInfo.Type`,提升代码一致性与可维护性。 - 移除旧的回合开始/结束时手动保存和还原精灵信息的逻辑
This commit is contained in:
@@ -78,7 +78,7 @@ func init() {
|
||||
return o.StatEffect_Exist(info.PetStatus.Sleep)
|
||||
})
|
||||
registerStatusFunc(401, func(i, o *input.Input) bool {
|
||||
return i.CurrentPet.PType == o.CurrentPet.PType
|
||||
return i.CurrentPet.PetInfo.Type == o.CurrentPet.PetInfo.Type
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user