Further work on the script interface rework
This commit is contained in:
@@ -220,8 +220,10 @@ public static class MoveTurnExecutor
|
||||
}
|
||||
|
||||
var blockIncomingHit = false;
|
||||
target.RunScriptHook(x => x.BlockIncomingHit(executingMove, target, hitIndex, ref blockIncomingHit));
|
||||
executingMove.RunScriptHook(x => x.BlockOutgoingHit(executingMove, target, hitIndex, ref blockIncomingHit));
|
||||
target.RunScriptHookInterface<IScriptBlockIncomingHit>(x =>
|
||||
x.BlockIncomingHit(executingMove, target, hitIndex, ref blockIncomingHit));
|
||||
executingMove.RunScriptHookInterface<IScriptBlockOutgoingHit>(x =>
|
||||
x.BlockOutgoingHit(executingMove, target, hitIndex, ref blockIncomingHit));
|
||||
if (blockIncomingHit)
|
||||
break;
|
||||
if (executingMove.GetHitData(target, hitIndex).HasFailed)
|
||||
|
||||
Reference in New Issue
Block a user