Fix some more issues.

- Fix issue where avatars would get mixed up or assigned randomly
- Fix issue where "{player's}" would display rather than name when revealing cards in hand
This commit is contained in:
elcnesh
2015-03-18 17:54:42 +00:00
parent eeb67ab6e4
commit bad910014c
6 changed files with 28 additions and 24 deletions

View File

@@ -19,7 +19,7 @@ public class MessageUtil {
}
public static String formatMessage(String message, PlayerView player, Object related) {
if (related instanceof Player && message.indexOf("{player") >= 0) {
if (related instanceof PlayerView && message.indexOf("{player") >= 0) {
String noun = mayBeYou(player, related);
message = message.replace("{player}", noun).replace("{player's}", Lang.getPossesive(noun));
}