-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tweak the Pillar of the Paruns format #11197
Merged
Merged
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
package mage.cards.p; | ||
|
||
import mage.abilities.keyword.HexproofAbility; | ||
import mage.abilities.mana.ColorlessManaAbility; | ||
import mage.abilities.mana.ConditionalAnyColorManaAbility; | ||
import mage.abilities.mana.conditional.ConditionalSpellManaBuilder; | ||
import mage.cards.CardImpl; | ||
import mage.cards.CardSetInfo; | ||
import mage.constants.CardType; | ||
import mage.filter.StaticFilters; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* Custom version of Pillar of the Paruns. | ||
* Tweaked for the needs of the Pillar of the Paruns custom mode. | ||
* | ||
* Has Hexproof and "{T}: Add {1}" | ||
* | ||
* @author Susucr | ||
*/ | ||
public final class PillarOfTheParunsCustom extends CardImpl { | ||
|
||
public PillarOfTheParunsCustom(UUID ownerId, CardSetInfo setInfo) { | ||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); | ||
|
||
// Custom: Hexproof | ||
this.addAbility(HexproofAbility.getInstance()); | ||
|
||
// Custom: {T}: Add {1} | ||
this.addAbility(new ColorlessManaAbility()); | ||
|
||
// {T}: Add one mana of any color. Spend this mana only to cast a multicolored spell. | ||
this.addAbility(new ConditionalAnyColorManaAbility(1, new ConditionalSpellManaBuilder(StaticFilters.FILTER_SPELL_A_MULTICOLORED))); | ||
} | ||
|
||
private PillarOfTheParunsCustom(final PillarOfTheParunsCustom card) { | ||
super(card); | ||
} | ||
|
||
@Override | ||
public PillarOfTheParunsCustom copy() { | ||
return new PillarOfTheParunsCustom(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
package mage.sets; | ||
|
||
import mage.cards.ExpansionSet; | ||
import mage.constants.Rarity; | ||
import mage.constants.SetType; | ||
|
||
/** | ||
* Custom version of the official cards. | ||
* Similar to Alchemy tweaks of cards. | ||
* @author Susucr | ||
*/ | ||
public final class CustomAlchemy extends ExpansionSet { | ||
Susucre marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
private static final CustomAlchemy instance = new CustomAlchemy(); | ||
|
||
public static CustomAlchemy getInstance() { | ||
return instance; | ||
} | ||
|
||
private CustomAlchemy() { | ||
super("Custom Alchemy", "CALC", ExpansionSet.buildDate(2023, 9, 24), SetType.CUSTOM_SET); | ||
cards.add(new SetCardInfo("C-Pillar of the Paruns", 1, Rarity.SPECIAL, mage.cards.p.PillarOfTheParunsCustom.class)); | ||
} | ||
|
||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's slightly confusing to add a custom set in this list. But if that's the only way for it to work, it's okay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that first add is for "attempt to download through scryfall", then the directDownloadLinks will direct url download the pillar image from dissension to the correct folder for CALC/1
I did not want to do an heavier rework of the logic, but still have some image on the custom card.