feat(pet): 添加精灵进化功能并优化融合系统 - 新增PetELV方法实现精灵进化功能,支持分支进化选择 - 添加进化相关的数据结构定义 - 实现进化材料检查和扣除逻辑 - 优化宠物融合失败处理机制 fix(fight): 修复战斗系统和效果计算问题 - 修复NewSeIdx_11和effect_60中的伤害计算逻辑 - 修复战斗状态判断条件,避免非PVP模式下的错误处理 - 优化战斗回合处理流程,修复效果缓存清空时机 - 修复effect_69
28 lines
707 B
Go
28 lines
707 B
Go
package effect
|
||
|
||
import (
|
||
"blazing/logic/service/fight/action"
|
||
"blazing/logic/service/fight/input"
|
||
)
|
||
|
||
// 41. 每回合恢复自身n点体力;(a1: n)
|
||
// TODO: 实现每回合恢复自身n点体力;(a1: n)的核心逻辑
|
||
type NewSel41 struct {
|
||
NewSel0
|
||
}
|
||
|
||
func (e *NewSel41) Compare_Pre(fattack *action.SelectSkillAction, sattack *action.SelectSkillAction) bool {
|
||
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet.Info.CatchTime {
|
||
return true
|
||
}
|
||
|
||
if sattack == nil { //说明有一方放弃出手,如果自身被控那也不能回血
|
||
return true
|
||
}
|
||
e.Ctx().Our.Heal(e.Ctx().Our, nil, e.Args()[0])
|
||
return true
|
||
}
|
||
func init() {
|
||
input.InitEffect(input.EffectType.NewSel, 41, &NewSel41{})
|
||
}
|