ApplyConditionBattleMutationInterceptor
condition 挂载 mutation 的生命周期拦截器。
设计意图:
把单位 condition、side condition 与 field condition 的“挂载前”生命周期统一收口到
on_apply_condition;让 ability / item / 状态 / 场地规则可以在 condition 真正写回前观察或拒绝本次挂载;
保持三条路径共享同一 hook 名称,差异通过 attributes 暴露。
当前约定:
单位 / side / field 都通过
conditionScope区分作用域;side condition 会把目标 side 的 active 单位作为 attached-effect 派发载体;
field condition 会把当前全部 active 单位作为 attached-effect 派发载体;
若没有 active 单位,则 field / side 当前不会派发该 hook。
Functions
Link copied to clipboard
open override fun intercept(context: BattleMutationInterceptionContext, attachedEffectProcessor: BattleAttachedEffectProcessor): BattleMutationInterceptionResult
拦截当前 mutation。
Link copied to clipboard
判断当前拦截器是否负责处理给定 mutation。