mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -08:00
text adjustments and typo fixes
This commit is contained in:
parent
acceb33bd9
commit
6b23cd25f9
8 changed files with 13 additions and 15 deletions
|
|
@ -9,6 +9,7 @@ import mage.game.Game;
|
|||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
|
|
@ -35,7 +36,7 @@ public class SacrificePermanentTriggeredAbility extends TriggeredAbilityImpl {
|
|||
setLeavesTheBattlefieldTrigger(true);
|
||||
this.filter = filter;
|
||||
this.setTargetPointer = setTargetPointer;
|
||||
setTriggerPhrase("Whenever you sacrifice " + filter.getMessage() + ", ");
|
||||
setTriggerPhrase("Whenever you sacrifice " + CardUtil.addArticle(filter.getMessage()) + ", ");
|
||||
}
|
||||
|
||||
public SacrificePermanentTriggeredAbility(final SacrificePermanentTriggeredAbility ability) {
|
||||
|
|
|
|||
|
|
@ -972,7 +972,8 @@ public final class CardUtil {
|
|||
if (text.startsWith("a ")
|
||||
|| text.startsWith("an ")
|
||||
|| text.startsWith("another ")
|
||||
|| text.startsWith("any ")) {
|
||||
|| text.startsWith("any ")
|
||||
|| text.startsWith("one ")) {
|
||||
return text;
|
||||
}
|
||||
return (!text.isEmpty() && vowels.contains(text.substring(0, 1))) ? "an " + text : "a " + text;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue