1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-12 01:01:04 -09:00

r484 broke arrows for Abilities in the stack. Fixed.

This commit is contained in:
magenoxx 2010-12-09 11:06:51 +00:00
parent 168c8dc294
commit 55eba04697
2 changed files with 12 additions and 1 deletions
Mage.Client/src/main/java/mage/client/plugins/adapters
Mage.Common/src/mage/view

View file

@ -102,7 +102,7 @@ public class MageActionCallback implements ActionCallback {
Point parent = SwingUtilities.getRoot(data.component).getLocationOnScreen();
Point me = new Point(data.locationOnScreen);
me.translate(-parent.x, -parent.y);
UUID uuid = data.card.getId();
UUID uuid = data.card.getParentId();
for (PlayAreaPanel pa : session.getGame().getPlayers().values()) {
MagePermanent permanent = pa.getBattlefieldPanel().getPermanents().get(uuid);
if (permanent != null) {

View file

@ -53,6 +53,7 @@ import mage.target.Targets;
public class CardView implements Serializable {
protected UUID id;
protected UUID parentId;
protected String name;
protected List<String> rules;
protected String power;
@ -242,9 +243,19 @@ public class CardView implements Serializable {
}
public void overrideId(UUID id) {
if (parentId == null) {
parentId = this.id;
}
this.id = id;
}
public UUID getParentId() {
if (parentId != null) {
return parentId;
}
return id;
}
public void setAbility(CardView ability) {
this.ability = ability;
}