Fixed Training Drone

This commit is contained in:
magenoxx 2011-08-31 23:45:19 +04:00
parent 01e565f1ad
commit d19c7927e4

View file

@ -82,6 +82,7 @@ class TrainingDroneEffect extends RestrictionEffect<TrainingDroneEffect> {
@Override
public boolean applies(Permanent permanent, Ability source, Game game) {
if (permanent.getId().equals(source.getSourceId())) {
List<UUID> attachments = permanent.getAttachments();
for (UUID uuid : attachments) {
Permanent attached = game.getBattlefield().getPermanent(uuid);
@ -91,6 +92,9 @@ class TrainingDroneEffect extends RestrictionEffect<TrainingDroneEffect> {
}
return true;
}
// don't apply for all other creatures!
return false;
}
@Override
public boolean canBlock(Permanent attacker, Permanent blocker, Ability source, Game game) {