mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
*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:
@@ -2762,11 +2762,21 @@ public class Card extends MyObservable implements Comparable<Card> {
|
||||
updateObservers();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void clearControllers()
|
||||
{
|
||||
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>
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user