mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
GUI, game: improved stack's hint with targets list (added player name and sorted by it);
This commit is contained in:
parent
654dda8f74
commit
064c102590
1 changed files with 6 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ import mage.counters.Counter;
|
||||||
import mage.counters.CounterType;
|
import mage.counters.CounterType;
|
||||||
import mage.designations.Designation;
|
import mage.designations.Designation;
|
||||||
import mage.filter.FilterMana;
|
import mage.filter.FilterMana;
|
||||||
|
import mage.game.ControllableOrOwnerable;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.command.Dungeon;
|
import mage.game.command.Dungeon;
|
||||||
import mage.game.command.Emblem;
|
import mage.game.command.Emblem;
|
||||||
|
|
@ -764,7 +765,11 @@ public class CardView extends SimpleCardView {
|
||||||
String info;
|
String info;
|
||||||
MageObject targetObject = game.getObject(t);
|
MageObject targetObject = game.getObject(t);
|
||||||
if (targetObject != null) {
|
if (targetObject != null) {
|
||||||
info = targetObject.getIdName();
|
Player player = null;
|
||||||
|
if (targetObject instanceof ControllableOrOwnerable) {
|
||||||
|
player = game.getPlayer(((ControllableOrOwnerable) targetObject).getControllerOrOwnerId());
|
||||||
|
}
|
||||||
|
info = (player == null ? "" : player.getName() + ": ") + targetObject.getIdName();
|
||||||
} else {
|
} else {
|
||||||
Player targetPlayer = game.getPlayer(t);
|
Player targetPlayer = game.getPlayer(t);
|
||||||
if (targetPlayer != null) {
|
if (targetPlayer != null) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue