[SPM] Implement Angry Rabble

This commit is contained in:
theelk801 2025-07-24 10:38:12 -04:00
parent 75b553fe72
commit a5e9796010
8 changed files with 83 additions and 44 deletions

View file

@ -10,6 +10,7 @@ import mage.game.Game;
import mage.game.events.GameEvent;
import mage.game.stack.Spell;
import mage.target.targetpointer.FixedTarget;
import mage.util.CardUtil;
/**
* @author North, Susucr
@ -103,7 +104,7 @@ public class SpellCastControllerTriggeredAbility extends TriggeredAbilityImpl {
}
private void makeTriggerPhrase() {
String text = getWhen() + "you cast " + filter.getMessage();
String text = getWhen() + "you cast " + CardUtil.addArticle(filter.getMessage());
switch (fromZone) {
case ALL:

View file

@ -1093,6 +1093,13 @@ public final class StaticFilters {
FILTER_SPELL_KICKED_A.setLockedFilter(true);
}
public static final FilterSpell FILTER_SPELL_MV_4_OR_GREATER = new FilterSpell("spell with mana value 4 or greater");
static {
FILTER_SPELL_MV_4_OR_GREATER.add(new ManaValuePredicate(ComparisonType.OR_GREATER, 4));
FILTER_SPELL_MV_4_OR_GREATER.setLockedFilter(true);
}
public static final FilterSpell FILTER_SPELL_NO_MANA_SPENT = new FilterSpell("a spell, if no mana was spent to cast it");
static {