mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
* Standard Bearer - fixed that it can broke spells on false Flagbearer checks (#5784);
This commit is contained in:
parent
a8cee1abf7
commit
7089a09061
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ public class Targets extends ArrayList<Target> {
|
|||
if (!canChoose(source.getSourceId(), playerId, game)) {
|
||||
return false;
|
||||
}
|
||||
int state = game.bookmarkState();
|
||||
//int state = game.bookmarkState();
|
||||
while (!isChosen()) {
|
||||
Target target = this.getUnchosen().get(0);
|
||||
UUID targetController = playerId;
|
||||
|
@ -93,7 +93,7 @@ public class Targets extends ArrayList<Target> {
|
|||
// Check if there are some rules for targets are violated, if so reset the targets and start again
|
||||
if (this.getUnchosen().isEmpty()
|
||||
&& game.replaceEvent(new GameEvent(GameEvent.EventType.TARGETS_VALID, source.getSourceId(), source.getSourceId(), source.getControllerId()), source)) {
|
||||
game.restoreState(state, "Targets");
|
||||
//game.restoreState(state, "Targets");
|
||||
clearChosen();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue