* Fixed cards with skip untap optional ability that cause game freezes (#5606)

This commit is contained in:
Oleg Agafonov 2019-03-01 18:10:32 +04:00
parent 4a14940414
commit 6846db75f4
169 changed files with 754 additions and 1172 deletions

View file

@ -10,18 +10,15 @@ import mage.game.permanent.Permanent;
/**
* 702.13. Intimidate #
*
* 702.13a Intimidate is an evasion ability.
*
* 702.13b A creature with intimidate can't be blocked except by artifact creatures
* and/or creatures that share a color with it. (See rule 509, "Declare Blockers Step.") #
*
* 702.13c Multiple instances of intimidate on the same creature are redundant.
*
*
*
* <p>
* 702.13a Intimidate is an evasion ability.
* <p>
* 702.13b A creature with intimidate can't be blocked except by artifact creatures
* and/or creatures that share a color with it. (See rule 509, "Declare Blockers Step.") #
* <p>
* 702.13c Multiple instances of intimidate on the same creature are redundant.
*/
public class IntimidateAbility extends EvasionAbility implements MageSingleton {
public class IntimidateAbility extends EvasionAbility implements MageSingleton {
private static final IntimidateAbility instance = new IntimidateAbility();
public static IntimidateAbility getInstance() {
@ -58,7 +55,7 @@ class IntimidateEffect extends RestrictionEffect implements MageSingleton {
}
@Override
public boolean canBeBlocked(Permanent attacker, Permanent blocker, Ability source, Game game) {
public boolean canBeBlocked(Permanent attacker, Permanent blocker, Ability source, Game game, boolean canUseChooseDialogs) {
boolean result = false;
if (blocker.isArtifact() && (blocker.isCreature())) {
result = true;