GUI: add basic hint for goaded by a player. (#10688)

This commit is contained in:
Susucre 2023-07-29 01:33:18 +02:00 committed by GitHub
parent a8bba53adf
commit 3e406a9975
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}