mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 11:49:56 -08:00
I have a fever and the only prescription is more refactoring ConditionalInterveningIfTriggeredAbility
This commit is contained in:
parent
cc2d234d58
commit
15d4ca2edc
44 changed files with 456 additions and 653 deletions
|
|
@ -19,4 +19,9 @@ public enum TreasureSpentToCastCondition implements Condition {
|
|||
}
|
||||
return ManaPaidSourceWatcher.getTreasurePaid(source.getSourceId(), game) > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "mana from a Treasure was spent to cast it";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import mage.abilities.hint.Hint;
|
|||
import mage.abilities.hint.ValueHint;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
|
|
@ -25,6 +26,8 @@ public class GreatestAmongPermanentsValue implements DynamicValue {
|
|||
= new GreatestAmongPermanentsValue(Quality.Power, StaticFilters.FILTER_CONTROLLED_CREATURES);
|
||||
public static final GreatestAmongPermanentsValue POWER_OTHER_CONTROLLED_CREATURES
|
||||
= new GreatestAmongPermanentsValue(Quality.Power, StaticFilters.FILTER_OTHER_CONTROLLED_CREATURES);
|
||||
public static final GreatestAmongPermanentsValue POWER_ALL_CREATURES
|
||||
= new GreatestAmongPermanentsValue(Quality.Power, new FilterCreaturePermanent("creatures on the battlefield"));
|
||||
public static final GreatestAmongPermanentsValue TOUGHNESS_CONTROLLED_CREATURES
|
||||
= new GreatestAmongPermanentsValue(Quality.Toughness, StaticFilters.FILTER_CONTROLLED_CREATURES);
|
||||
public static final GreatestAmongPermanentsValue TOUGHNESS_OTHER_CONTROLLED_CREATURES
|
||||
|
|
@ -114,4 +117,4 @@ public class GreatestAmongPermanentsValue implements DynamicValue {
|
|||
public Hint getHint() {
|
||||
return new ValueHint("Greatest " + quality.text + " among " + filter.getMessage(), this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue