Additional card hints for 68326c8554

This commit is contained in:
Oleg Agafonov 2020-01-29 07:08:52 +04:00
parent 68326c8554
commit cae3081123

View file

@ -306,6 +306,19 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
if (entry.getKey().mustBlockAllAttackers(game)) {
restrictHints.add(HintUtils.prepareText("Must block all attackers" + addSourceObjectName(game, ability), null, HintUtils.HINT_ICON_REQUIRE));
}
MageObject object = game.getObject(entry.getKey().mustAttackDefender(ability, game));
if (object != null) {
restrictHints.add(HintUtils.prepareText("Must attack defender " + object.getLogName() + addSourceObjectName(game, ability), null, HintUtils.HINT_ICON_REQUIRE));
}
object = game.getObject(entry.getKey().mustBlockAttacker(ability, game));
if (object != null) {
restrictHints.add(HintUtils.prepareText("Must block attacker " + object.getLogName() + addSourceObjectName(game, ability), null, HintUtils.HINT_ICON_REQUIRE));
}
object = game.getObject(entry.getKey().mustBlockAttackerIfElseUnblocked(ability, game));
if (object != null) {
restrictHints.add(HintUtils.prepareText("Must block attacker if able " + object.getLogName() + addSourceObjectName(game, ability), null, HintUtils.HINT_ICON_REQUIRE));
}
}
}