forked from External/mage
better text generation, a couple more individual fixes
This commit is contained in:
parent
6768184e18
commit
1903f90b3a
4 changed files with 10 additions and 19 deletions
|
|
@ -216,7 +216,7 @@ public abstract class TriggeredAbilityImpl extends AbilityImpl implements Trigge
|
|||
sb.append("you may ");
|
||||
} else if (!ruleLow.startsWith("its controller may")) {
|
||||
sb.append("you may have ");
|
||||
superRule = ruleWithFixedVerbGrammar(superRule);
|
||||
superRule = superRule.replaceFirst(" (become|block|deal|discard|gain|get|lose|mill|sacrifice)s? ", " $1 ");
|
||||
}
|
||||
}
|
||||
if (replaceRuleText
|
||||
|
|
@ -266,18 +266,6 @@ public abstract class TriggeredAbilityImpl extends AbilityImpl implements Trigge
|
|||
|| ruleLow.startsWith("untap");
|
||||
}
|
||||
|
||||
private static String ruleWithFixedVerbGrammar(String rule) {
|
||||
return rule.replace(" becomes ", " become ")
|
||||
.replace(" blocks ", " block ")
|
||||
.replace(" deals ", " deal ")
|
||||
.replace(" discards ", " discard ")
|
||||
.replace(" gains ", " gain ")
|
||||
.replace(" gets ", " get ")
|
||||
.replace(" loses ", " lose ")
|
||||
.replace(" mills ", " mill ")
|
||||
.replace(" sacrifices ", " sacrifice ");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInUseableZone(Game game, MageObject source, GameEvent event) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue