forked from External/mage
* Fixed cards with skip untap optional ability that cause game freezes (#5606)
This commit is contained in:
parent
4a14940414
commit
6846db75f4
169 changed files with 754 additions and 1172 deletions
|
|
@ -1645,7 +1645,7 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
for (Permanent permanent : game.getBattlefield().getAllActivePermanents(playerId)) {
|
||||
boolean untap = true;
|
||||
for (RestrictionEffect effect : game.getContinuousEffects().getApplicableRestrictionEffects(permanent, game).keySet()) {
|
||||
untap &= effect.canBeUntapped(permanent, null, game);
|
||||
untap &= effect.canBeUntapped(permanent, null, game, true);
|
||||
}
|
||||
if (untap) {
|
||||
canBeUntapped.add(permanent);
|
||||
|
|
@ -1752,7 +1752,7 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
for (Permanent permanent : game.getBattlefield().getAllActivePermanents(playerId)) {
|
||||
boolean untap = true;
|
||||
for (RestrictionEffect effect : game.getContinuousEffects().getApplicableRestrictionEffects(permanent, game).keySet()) {
|
||||
untap &= effect.canBeUntapped(permanent, null, game);
|
||||
untap &= effect.canBeUntapped(permanent, null, game, true);
|
||||
}
|
||||
if (untap) {
|
||||
permanent.untap(game);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue