[DOM] Updated Curator's Ward.
package mage.cards.c;
import java.util.UUID;
-import mage.constants.SubType;
import mage.abilities.Ability;
import mage.abilities.TriggeredAbilityImpl;
-import mage.abilities.effects.Effect;
import mage.abilities.effects.common.AttachEffect;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
-import mage.constants.Outcome;
-import mage.target.TargetPermanent;
import mage.abilities.keyword.EnchantAbility;
import mage.abilities.keyword.HexproofAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.AttachmentType;
import mage.constants.CardType;
+import mage.constants.Outcome;
+import mage.constants.SubType;
import mage.constants.Zone;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.game.events.ZoneChangeEvent;
import mage.game.permanent.Permanent;
+import mage.target.TargetPermanent;
/**
*
@@ -87,7 +86,7 @@ public class CuratorsWard extends CardImpl {
class CuratorsWardTriggeredAbility extends TriggeredAbilityImpl {
public CuratorsWardTriggeredAbility() {
- super(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(2).setText("When enchanted permanent leaves the battlefield, if it was historic, draw two cards."), false);
+ super(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(2), false);
}
public CuratorsWardTriggeredAbility(CuratorsWardTriggeredAbility ability) {
@@ -104,7 +103,7 @@ class CuratorsWardTriggeredAbility extends TriggeredAbilityImpl {
ZoneChangeEvent zEvent = (ZoneChangeEvent) event;
if (zEvent.getFromZone() == Zone.BATTLEFIELD) {
Permanent enchanted = game.getPermanentOrLKIBattlefield(event.getTargetId());
- if (enchanted != null && enchanted.getAttachments().contains(sourceId) && enchanted.isHistoric()) {
+ if (enchanted != null && enchanted.getAttachments().contains(getSourceId()) && enchanted.isHistoric()) {
return true;
}
}
@@ -113,7 +112,7 @@ class CuratorsWardTriggeredAbility extends TriggeredAbilityImpl {
@Override
public String getRule() {
- return "When enchanted permanent leaves the battlefield, if it was historic, draw two cards.";
+ return "When enchanted permanent leaves the battlefield, if it was historic," + super.getRule();
}
@Override
