mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Hints: disable card hints in m15 render mode;
This commit is contained in:
parent
3f510e97c9
commit
f341d35ece
4 changed files with 13 additions and 1 deletions
|
|
@ -15,6 +15,9 @@ public class HintUtils {
|
|||
public static final String HINT_ICON_BAD = "ICON_BAD";
|
||||
public static final String HINT_ICON_RESTRICT = "ICON_RESTRICT";
|
||||
|
||||
//
|
||||
public static final String HINT_START_MARK = "<br/><hintstart/>"; // workaround to find hint text in rules list and shows it in html
|
||||
|
||||
public static String prepareText(String text, Color color) {
|
||||
return prepareText(text, color, null);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -273,6 +273,7 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
|
|||
|
||||
// total hints
|
||||
if (!abilityHints.isEmpty()) {
|
||||
rules.add(HintUtils.HINT_START_MARK);
|
||||
rules.addAll(abilityHints);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -294,6 +294,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
|
|||
|
||||
// total hints
|
||||
if (!abilityHints.isEmpty() || !restrictHints.isEmpty()) {
|
||||
rules.add(HintUtils.HINT_START_MARK);
|
||||
rules.addAll(abilityHints);
|
||||
rules.addAll(restrictHints);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue