ConsumeItemBattleMutationInterceptor
道具消耗 mutation 的生命周期拦截器。
设计意图:
在
ConsumeItemMutation真正把itemId清空前,为目标派发on_consume_item;让目标身上的 ability / status / condition 等效果有机会阻止这次消耗;
只有当前目标确实持有道具时,才认为这次生命周期成立。
Functions
Link copied to clipboard
open override fun intercept(context: BattleMutationInterceptionContext, attachedEffectProcessor: BattleAttachedEffectProcessor): BattleMutationInterceptionResult
拦截当前 mutation。
Link copied to clipboard
判断当前拦截器是否负责处理给定 mutation。