From d19c7927e4bbedbc3097fc9865debb0d24962e41 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Wed, 31 Aug 2011 23:45:19 +0400 Subject: [PATCH] Fixed Training Drone --- .../sets/mirrodinbesieged/TrainingDrone.java | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Mage.Sets/src/mage/sets/mirrodinbesieged/TrainingDrone.java b/Mage.Sets/src/mage/sets/mirrodinbesieged/TrainingDrone.java index 5e1afe9d73..fe72273eb8 100644 --- a/Mage.Sets/src/mage/sets/mirrodinbesieged/TrainingDrone.java +++ b/Mage.Sets/src/mage/sets/mirrodinbesieged/TrainingDrone.java @@ -82,14 +82,18 @@ class TrainingDroneEffect extends RestrictionEffect { @Override public boolean applies(Permanent permanent, Ability source, Game game) { - List attachments = permanent.getAttachments(); - for (UUID uuid : attachments) { - Permanent attached = game.getBattlefield().getPermanent(uuid); - if (attached.getSubtype().contains("Equipment")) { - return false; - } - } - return true; + if (permanent.getId().equals(source.getSourceId())) { + List attachments = permanent.getAttachments(); + for (UUID uuid : attachments) { + Permanent attached = game.getBattlefield().getPermanent(uuid); + if (attached.getSubtype().contains("Equipment")) { + return false; + } + } + return true; + } + // don't apply for all other creatures! + return false; } @Override