From d653de950fdf1f7920d7a4d02ade9415c6941bad Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Fri, 23 Nov 2012 00:46:07 +0100 Subject: [PATCH] Added to BeginningOfUpkeepTriggeredAbility for targetController a mode that defines the controller of the object the source is attached to. --- Mage/src/mage/Constants.java | 2 +- .../BeginningOfUpkeepTriggeredAbility.java | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Mage/src/mage/Constants.java b/Mage/src/mage/Constants.java index 9e807d7c26..14d066c9a5 100644 --- a/Mage/src/mage/Constants.java +++ b/Mage/src/mage/Constants.java @@ -380,7 +380,7 @@ public final class Constants { } public enum TargetController { - ANY, YOU, NOT_YOU, OPPONENT + ANY, YOU, NOT_YOU, OPPONENT, CONTROLLER_ATTACHED_TO } public enum RangeOfInfluence { diff --git a/Mage/src/mage/abilities/common/BeginningOfUpkeepTriggeredAbility.java b/Mage/src/mage/abilities/common/BeginningOfUpkeepTriggeredAbility.java index 0bf7da9abd..46eb588132 100644 --- a/Mage/src/mage/abilities/common/BeginningOfUpkeepTriggeredAbility.java +++ b/Mage/src/mage/abilities/common/BeginningOfUpkeepTriggeredAbility.java @@ -5,6 +5,7 @@ import mage.abilities.TriggeredAbilityImpl; import mage.abilities.effects.Effect; import mage.game.Game; import mage.game.events.GameEvent; +import mage.game.permanent.Permanent; import mage.target.targetpointer.FixedTarget; public class BeginningOfUpkeepTriggeredAbility extends TriggeredAbilityImpl { @@ -60,6 +61,19 @@ public class BeginningOfUpkeepTriggeredAbility extends TriggeredAbilityImpl