``` feat(fight): 新增战斗回合Hook机制,实现特定条件下强制结束战斗和随机出手逻辑

This commit is contained in:
1
2025-12-10 18:37:32 +00:00
parent f6043fd9b9
commit 6b534adc07
9 changed files with 54 additions and 7 deletions

View File

@@ -45,7 +45,8 @@ type Effect interface {
// OnOwnerSwitchIn() bool // 所属玩家精灵出战时触发
// OnOwnerSwitchOut() bool // 所属玩家精灵下场时触发
Turn_End() //回合结束计算
Turn_End() //回合结束计算
HookAction() bool //出手前的hook参数返回false阻止继续出手
//PreBattleEnd() bool //战斗结束前
OnBattleEnd() bool //战斗结束
Prop_Befer(in *Input, prop, level int8, ptype info.EnumAbilityOpType) bool //锁定属性