mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
remove unused custom class
This commit is contained in:
parent
7969736010
commit
2c78f6fd27
1 changed files with 6 additions and 41 deletions
|
|
@ -1,21 +1,19 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.dynamicvalue.common.GateYouControlCount;
|
||||
import mage.abilities.effects.common.PutOnLibrarySourceEffect;
|
||||
import mage.abilities.effects.common.cost.CostModificationEffectImpl;
|
||||
import mage.abilities.effects.common.cost.SpellCostReductionForEachSourceEffect;
|
||||
import mage.abilities.hint.common.GateYouControlHint;
|
||||
import mage.abilities.keyword.DauntAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.game.Game;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
|
|
@ -24,6 +22,8 @@ import java.util.UUID;
|
|||
*/
|
||||
public final class GateColossus extends CardImpl {
|
||||
|
||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent(SubType.GATE, "a Gate");
|
||||
|
||||
public GateColossus(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{8}");
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ public final class GateColossus extends CardImpl {
|
|||
Zone.GRAVEYARD,
|
||||
new PutOnLibrarySourceEffect(
|
||||
true, "put {this} from your graveyard on top of your library"
|
||||
), GateColossusCostReductionEffect.filter, true
|
||||
), filter, true
|
||||
));
|
||||
}
|
||||
|
||||
|
|
@ -58,38 +58,3 @@ public final class GateColossus extends CardImpl {
|
|||
return new GateColossus(this);
|
||||
}
|
||||
}
|
||||
|
||||
class GateColossusCostReductionEffect extends CostModificationEffectImpl {
|
||||
|
||||
static final FilterControlledPermanent filter = new FilterControlledPermanent("a Gate");
|
||||
|
||||
static {
|
||||
filter.add(SubType.GATE.getPredicate());
|
||||
}
|
||||
|
||||
public GateColossusCostReductionEffect() {
|
||||
super(Duration.WhileOnStack, Outcome.Benefit, CostModificationType.REDUCE_COST);
|
||||
staticText = "This spell costs {1} less to cast for each Gate you control";
|
||||
}
|
||||
|
||||
protected GateColossusCostReductionEffect(final GateColossusCostReductionEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source, Ability abilityToModify) {
|
||||
int count = game.getBattlefield().getAllActivePermanents(filter, source.getControllerId(), game).size();
|
||||
CardUtil.reduceCost(abilityToModify, count);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean applies(Ability abilityToModify, Ability source, Game game) {
|
||||
return abilityToModify.getSourceId().equals(source.getSourceId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public GateColossusCostReductionEffect copy() {
|
||||
return new GateColossusCostReductionEffect(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue