From 68ed1a4c913d4b0be762d93a580ace3d55d5c81e Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 28 May 2013 07:41:52 +0200 Subject: [PATCH] [Minor] fixes to tooltip rule generation. --- .../src/mage/sets/innistrad/TrepanationBlade.java | 1 + .../src/mage/sets/magic2013/RingOfEvosIsle.java | 14 +++++++++----- .../continious/GainAbilityAttachedEffect.java | 3 +++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Mage.Sets/src/mage/sets/innistrad/TrepanationBlade.java b/Mage.Sets/src/mage/sets/innistrad/TrepanationBlade.java index bb02970ea4..8c1c6075bd 100644 --- a/Mage.Sets/src/mage/sets/innistrad/TrepanationBlade.java +++ b/Mage.Sets/src/mage/sets/innistrad/TrepanationBlade.java @@ -143,6 +143,7 @@ class TrepanationBladeBoostEffect extends ContinuousEffectImpl { this.subtype.add("Equipment"); // {2}: Equipped creature gains hexproof until end of turn. - this.addAbility(new SimpleActivatedAbility(Constants.Zone.BATTLEFIELD, new GainAbilityAttachedEffect(HexproofAbility.getInstance(), Constants.AttachmentType.EQUIPMENT, Constants.Duration.EndOfTurn), new GenericManaCost(2))); + this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(HexproofAbility.getInstance(), AttachmentType.EQUIPMENT, Duration.EndOfTurn), new GenericManaCost(2))); // At the beginning of your upkeep, put a +1/+1 counter on equipped creature if it's blue. - TriggeredAbility triggeredAbility = new BeginningOfUpkeepTriggeredAbility(Constants.Zone.BATTLEFIELD, new AddPlusOneCountersAttachedEffect(1), Constants.TargetController.YOU, false); - ConditionalTriggeredAbility ability2 = new ConditionalTriggeredAbility(triggeredAbility, new EquippedMatchesFilterCondition(filter), "At the beginning of your upkeep, put a +1/+1 counter on equipped creature if it's blue"); + TriggeredAbility triggeredAbility = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new AddPlusOneCountersAttachedEffect(1), TargetController.YOU, false); + ConditionalTriggeredAbility ability2 = new ConditionalTriggeredAbility(triggeredAbility, new EquippedMatchesFilterCondition(filter), "At the beginning of your upkeep, put a +1/+1 counter on equipped creature if it's blue."); this.addAbility(ability2); // Equip {1} - this.addAbility(new EquipAbility(Constants.Outcome.BoostCreature, new GenericManaCost(1))); + this.addAbility(new EquipAbility(Outcome.BoostCreature, new GenericManaCost(1))); } public RingOfEvosIsle(final RingOfEvosIsle card) { diff --git a/Mage/src/mage/abilities/effects/common/continious/GainAbilityAttachedEffect.java b/Mage/src/mage/abilities/effects/common/continious/GainAbilityAttachedEffect.java index d6ddd76bd8..1682b34a38 100644 --- a/Mage/src/mage/abilities/effects/common/continious/GainAbilityAttachedEffect.java +++ b/Mage/src/mage/abilities/effects/common/continious/GainAbilityAttachedEffect.java @@ -131,6 +131,9 @@ public class GainAbilityAttachedEffect extends ContinuousEffectImpl