* Added id and colored font to shown related object names of stack abilities.

This commit is contained in:
LevelX2 2015-07-26 10:17:04 +02:00
parent 5694f8aa8c
commit b029de3ec9
3 changed files with 36 additions and 3 deletions

View file

@ -49,6 +49,7 @@ import mage.game.GameState;
import mage.game.command.Emblem;
import mage.game.permanent.Permanent;
import mage.target.targetpointer.TargetPointer;
import mage.util.GameLog;
/**
*
@ -145,11 +146,11 @@ public class CardsView extends LinkedHashMap<UUID, CardView> {
for (UUID uuid : abilityTargets) {
MageObject mageObject = game.getObject(uuid);
if (mageObject != null) {
names.add(mageObject.getName());
names.add(GameLog.getColoredObjectIdNameForTooltip(mageObject));
}
}
if (!names.isEmpty()) {
abilityView.getRules().add("<i>Related to: " + names.toString() + "</i>");
abilityView.getRules().add("<i>Related objects: " + names.toString() + "</i>");
}
}
}