refactor(fight/effect): 重构Effect62技能结束逻辑,修复隐藏状态判断并新增死亡处理

This commit is contained in:
1
2025-09-23 19:38:08 +00:00
parent fb55f18a39
commit 9296f47605
4 changed files with 20 additions and 136 deletions

View File

@@ -57,6 +57,14 @@ func (i *Input) GetPet(id uint32) (ii *info.BattlePetEntity, Reason info.ChangeP
}
func (u *Input) Death() {
u.CurrentPet.Info.Hp = 0
//todo 待实现死亡effet
}
// GetStatusBonus 获取最高的状态倍率
// 遍历状态数组返回存在的状态中最高的倍率无状态则返回1.0
func (i *Input) GetStatusBonus() float64 {