mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +00:00
Captured by the Consulate incorrectly prevented creature from blocking
This commit is contained in:
parent
16e82ac582
commit
b5d965d9ba
1 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ import mage.abilities.common.SimpleStaticAbility;
|
||||||
import mage.abilities.effects.Effect;
|
import mage.abilities.effects.Effect;
|
||||||
import mage.abilities.effects.OneShotEffect;
|
import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.abilities.effects.common.AttachEffect;
|
import mage.abilities.effects.common.AttachEffect;
|
||||||
import mage.abilities.effects.common.combat.CantAttackAttachedEffect;
|
import mage.abilities.effects.common.combat.CantAttackBlockAttachedEffect;
|
||||||
import mage.abilities.keyword.EnchantAbility;
|
import mage.abilities.keyword.EnchantAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.constants.AttachmentType;
|
import mage.constants.AttachmentType;
|
||||||
|
@ -81,8 +81,8 @@ public class CapturedByTheConsulate extends CardImpl {
|
||||||
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
||||||
// Enchanted creature can't attack or block.
|
// Enchanted creature can't attack.
|
||||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantAttackAttachedEffect (AttachmentType.AURA)));
|
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantAttackBlockAttachedEffect(AttachmentType.AURA)));
|
||||||
|
|
||||||
// Whenever an opponent casts a spell, if it has a single target, change the target to enchanted creature if able.
|
// Whenever an opponent casts a spell, if it has a single target, change the target to enchanted creature if able.
|
||||||
this.addAbility(new CapturedByTheConsulateTriggeredAbility(Zone.BATTLEFIELD, new CapturedByTheConsulateEffect()));
|
this.addAbility(new CapturedByTheConsulateTriggeredAbility(Zone.BATTLEFIELD, new CapturedByTheConsulateEffect()));
|
||||||
|
|
Loading…
Reference in a new issue