fix what is almost certainly a typo (#8693)

This commit is contained in:
Alex Vasile 2022-02-20 01:07:55 -05:00 committed by GitHub
parent c1b70dee88
commit 6d02a902b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1713,7 +1713,7 @@ public abstract class CardTestPlayerAPIImpl extends MageTestPlayerBase implement
* Ends a block of actions to be added after an rollback action * Ends a block of actions to be added after an rollback action
*/ */
public void rollbackAfterActionsEnd() throws IllegalStateException { public void rollbackAfterActionsEnd() throws IllegalStateException {
if (rollbackBlockActive = false || rollbackPlayer == null) { if (!rollbackBlockActive || rollbackPlayer == null) {
throw new IllegalStateException("There was no rollback action defined before or no rollback block started. You can use this command only after a rollback action."); throw new IllegalStateException("There was no rollback action defined before or no rollback block started. You can use this command only after a rollback action.");
} }
rollbackBlockActive = false; rollbackBlockActive = false;