mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
prevent waiting for opponent during assert,
send the exception via sentry
This commit is contained in:
@@ -616,7 +616,9 @@ public class AiController {
|
||||
}
|
||||
catch (IllegalArgumentException ex) {
|
||||
System.err.println(ex.getMessage());
|
||||
ComparatorUtil.verifyTransitivity(saComparator, all);
|
||||
String assertex = ComparatorUtil.verifyTransitivity(saComparator, all);
|
||||
if (!assertex.isEmpty())
|
||||
Sentry.capture(ex.getMessage() + "\nAssertionError [verifyTransitivity]: " + assertex);
|
||||
}
|
||||
|
||||
for (final SpellAbility sa : ComputerUtilAbility.getOriginalAndAltCostAbilities(all, player)) {
|
||||
@@ -1585,7 +1587,9 @@ public class AiController {
|
||||
}
|
||||
catch (IllegalArgumentException ex) {
|
||||
System.err.println(ex.getMessage());
|
||||
ComparatorUtil.verifyTransitivity(saComparator, all);
|
||||
String assertex = ComparatorUtil.verifyTransitivity(saComparator, all);
|
||||
if (!assertex.isEmpty())
|
||||
Sentry.capture(ex.getMessage() + "\nAssertionError [verifyTransitivity]: " + assertex);
|
||||
}
|
||||
|
||||
for (final SpellAbility sa : ComputerUtilAbility.getOriginalAndAltCostAbilities(all, player)) {
|
||||
|
||||
Reference in New Issue
Block a user