diff --git a/SVSim.BattleNode/Sessions/Dispatch/BattleSessionState.cs b/SVSim.BattleNode/Sessions/Dispatch/BattleSessionState.cs
index ca6f784..6ac9008 100644
--- a/SVSim.BattleNode/Sessions/Dispatch/BattleSessionState.cs
+++ b/SVSim.BattleNode/Sessions/Dispatch/BattleSessionState.cs
@@ -1,4 +1,5 @@
using SVSim.BattleNode.Lifecycle;
+using SVSim.BattleNode.Protocol;
using SVSim.BattleNode.Sessions;
namespace SVSim.BattleNode.Sessions.Dispatch;
@@ -84,7 +85,7 @@ internal sealed class BattleSessionState
public void RecordTokensFrom(IBattleParticipant from, IBattleParticipant other, object? orderList)
{
foreach (var (idx, cardId, isSelf) in KnownListBuilder.MineAddOps(orderList))
- RecordToken(isSelf == 1 ? from : other, idx, cardId);
+ RecordToken(isSelf == CardOwner.Self ? from : other, idx, cardId);
}
/// Mine + record choice/Discover-token picks ()
@@ -95,7 +96,7 @@ internal sealed class BattleSessionState
public void RecordChoicePicksFrom(IBattleParticipant from, IBattleParticipant other, object? orderList, object? keyAction)
{
foreach (var (idx, cardId, isSelf) in KnownListBuilder.MineChoicePicks(orderList, keyAction))
- RecordToken(isSelf == 1 ? from : other, idx, cardId);
+ RecordToken(isSelf == CardOwner.Self ? from : other, idx, cardId);
}
/// Mine + record copy/clone-token identities ()
@@ -112,6 +113,6 @@ internal sealed class BattleSessionState
var selfMap = GetOrSeedDeckMap(from);
var otherMap = GetOrSeedDeckMap(other);
foreach (var (idx, cardId, isSelf) in KnownListBuilder.MineCopyTokens(orderList, selfMap, otherMap))
- RecordToken(isSelf == 1 ? from : other, idx, cardId);
+ RecordToken(isSelf == CardOwner.Self ? from : other, idx, cardId);
}
}
diff --git a/SVSim.BattleNode/Sessions/Dispatch/KnownListBuilder.cs b/SVSim.BattleNode/Sessions/Dispatch/KnownListBuilder.cs
index bad9ea9..632c7cc 100644
--- a/SVSim.BattleNode/Sessions/Dispatch/KnownListBuilder.cs
+++ b/SVSim.BattleNode/Sessions/Dispatch/KnownListBuilder.cs
@@ -55,7 +55,7 @@ internal static class KnownListBuilder
/// idx-is-list guards. This is the only place a freshly-generated card's identity exists on
/// the wire (bullet-3 audit F1; producing code RegisterToken/RegisterActionBase) —
/// the played-card op itself never carries a cardId.
- public static IEnumerable<(int Idx, long CardId, int IsSelf)> MineAddOps(object? orderList)
+ public static IEnumerable<(int Idx, long CardId, CardOwner IsSelf)> MineAddOps(object? orderList)
{
if (orderList is not IEnumerable
- public static IEnumerable<(int Idx, long CardId, int IsSelf)> MineChoicePicks(object? orderList, object? keyAction)
+ public static IEnumerable<(int Idx, long CardId, CardOwner IsSelf)> MineChoicePicks(object? orderList, object? keyAction)
{
if (orderList is not IEnumerable