fix concurrent modification, should not use getEquipmentPermanents() as AttachAction modifies it within the loop

master
melvinzhang 2015-05-24 11:29:36 +08:00
parent 0d3b3445d4
commit d74514136a
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game, {
it.getEquipmentPermanents() each {
EQUIPMENT_ATTACHED_TO_SOURCE.filter(it) each {
game.doAction(new AttachAction(it, MagicPermanent.NONE));
}
});