*Hopefully fixed the "triggers for wrong player" bug. The Anodet Lurker/Slave of Bolas case works properly now, among others at least.

This commit is contained in:
Hellfish
2011-08-27 11:18:20 +00:00
parent 124f7c74eb
commit b589539cd3
2 changed files with 16 additions and 1 deletions

View File

@@ -2768,6 +2768,16 @@ public class Card extends MyObservable implements Comparable<Card> {
controllerObjects.clear();
}
public ArrayList<Object> getControllerObjects()
{
return controllerObjects;
}
public void setControllerObjects(ArrayList<Object> in)
{
controllerObjects = in;
}
/**
* <p>Setter for the field <code>name</code>.</p>
*

View File

@@ -77,6 +77,7 @@ public class GameAction {
copied = c;
else {
copied = AllZone.getCardFactory().copyCard(c);
copied.setControllerObjects(c.getControllerObjects());
// todo: improve choices here
// Certain attributes need to be copied from Hand->Stack and Stack->Battlefield
@@ -120,6 +121,10 @@ public class GameAction {
prev.remove(c);
}
if (!(c.isToken() || suppress || zone.is(Constant.Zone.Battlefield)))
copied = AllZone.getCardFactory().copyCard(copied);
//remove all counters from the card if destination is not the battlefield
if (!zone.is(Constant.Zone.Battlefield))
copied.clearCounters();