mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +00:00
Fixed Maniacal Rage
Used CantBlockAttachedEffect instead of adding ability.
This commit is contained in:
parent
92deb4a955
commit
e39cb063c1
1 changed files with 2 additions and 3 deletions
|
@ -33,11 +33,10 @@ import mage.Constants;
|
||||||
import mage.Constants.CardType;
|
import mage.Constants.CardType;
|
||||||
import mage.Constants.Rarity;
|
import mage.Constants.Rarity;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.CantBlockAbility;
|
|
||||||
import mage.abilities.common.SimpleStaticAbility;
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
import mage.abilities.effects.common.AttachEffect;
|
import mage.abilities.effects.common.AttachEffect;
|
||||||
|
import mage.abilities.effects.common.CantBlockAttachedEffect;
|
||||||
import mage.abilities.effects.common.continious.BoostEnchantedEffect;
|
import mage.abilities.effects.common.continious.BoostEnchantedEffect;
|
||||||
import mage.abilities.effects.common.continious.GainAbilityAttachedEffect;
|
|
||||||
import mage.abilities.keyword.EnchantAbility;
|
import mage.abilities.keyword.EnchantAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.target.TargetPermanent;
|
import mage.target.TargetPermanent;
|
||||||
|
@ -64,7 +63,7 @@ public class ManiacalRage extends CardImpl<ManiacalRage> {
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
// Enchanted creature gets +2/+2 and can't block.
|
// Enchanted creature gets +2/+2 and can't block.
|
||||||
this.addAbility(new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new BoostEnchantedEffect(1, 2, Constants.Duration.WhileOnBattlefield)));
|
this.addAbility(new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new BoostEnchantedEffect(1, 2, Constants.Duration.WhileOnBattlefield)));
|
||||||
this.addAbility(new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new GainAbilityAttachedEffect(CantBlockAbility.getInstance(), Constants.AttachmentType.AURA, Constants.Duration.WhileOnBattlefield)));
|
this.addAbility(new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new CantBlockAttachedEffect(Constants.AttachmentType.AURA)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public ManiacalRage(final ManiacalRage card) {
|
public ManiacalRage(final ManiacalRage card) {
|
||||||
|
|
Loading…
Reference in a new issue