mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +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:
@@ -2768,6 +2768,16 @@ public class Card extends MyObservable implements Comparable<Card> {
|
|||||||
controllerObjects.clear();
|
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>
|
* <p>Setter for the field <code>name</code>.</p>
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ public class GameAction {
|
|||||||
copied = c;
|
copied = c;
|
||||||
else {
|
else {
|
||||||
copied = AllZone.getCardFactory().copyCard(c);
|
copied = AllZone.getCardFactory().copyCard(c);
|
||||||
|
copied.setControllerObjects(c.getControllerObjects());
|
||||||
|
|
||||||
// todo: improve choices here
|
// todo: improve choices here
|
||||||
// Certain attributes need to be copied from Hand->Stack and Stack->Battlefield
|
// Certain attributes need to be copied from Hand->Stack and Stack->Battlefield
|
||||||
@@ -120,6 +121,10 @@ public class GameAction {
|
|||||||
prev.remove(c);
|
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
|
//remove all counters from the card if destination is not the battlefield
|
||||||
if (!zone.is(Constant.Zone.Battlefield))
|
if (!zone.is(Constant.Zone.Battlefield))
|
||||||
copied.clearCounters();
|
copied.clearCounters();
|
||||||
|
|||||||
Reference in New Issue
Block a user