Fixed a bug of Infinite Reflection copy to the enchanted creature itself.

This commit is contained in:
LevelX2 2013-02-20 01:23:46 +01:00
parent f0536b06d4
commit 9aabe14e01

View file

@ -113,7 +113,9 @@ class InfiniteReflectionTriggeredEffect extends OneShotEffect<InfiniteReflection
Permanent toCopyFromPermanent = game.getPermanent(sourcePermanent.getAttachedTo());
if (toCopyFromPermanent != null) {
for (Permanent toCopyToPermanent: game.getBattlefield().getAllActivePermanents(filter, source.getControllerId(), game)) {
game.copyPermanent(toCopyFromPermanent, toCopyToPermanent, source, new EmptyApplyToPermanent());
if (!toCopyToPermanent.equals(toCopyFromPermanent) && !(toCopyToPermanent instanceof PermanentToken)) {
game.copyPermanent(toCopyFromPermanent, toCopyToPermanent, source, new EmptyApplyToPermanent());
}
}
return true;
}