forked from External/mage
GUI: add basic hint for goaded by a player. (#10688)
This commit is contained in:
parent
a8bba53adf
commit
3e406a9975
1 changed files with 8 additions and 0 deletions
|
|
@ -341,6 +341,14 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
|
|||
}
|
||||
}
|
||||
|
||||
// Goaded hints.
|
||||
for (UUID playerId : getGoadingPlayers()) {
|
||||
Player player = game.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
restrictHints.add(HintUtils.prepareText("Goaded by " + player.getLogName(), null, HintUtils.HINT_ICON_REQUIRE));
|
||||
}
|
||||
}
|
||||
|
||||
restrictHints.sort(String::compareTo);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue