mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 12:31:59 -08:00
Merge pull request #6539 from etpalmer63/TogetherFixTwo
Added method to SupportAbility class to allow for removal of 'other' …
This commit is contained in:
commit
2b448cea6a
2 changed files with 11 additions and 3 deletions
|
|
@ -19,8 +19,12 @@ import mage.target.common.TargetCreaturePermanent;
|
|||
*/
|
||||
public class SupportAbility extends EntersBattlefieldTriggeredAbility {
|
||||
|
||||
public SupportAbility(Card card, int amount) {
|
||||
super(new SupportEffect(card, amount, true));
|
||||
/*
|
||||
* For enchantments, the text should not include the word "other".
|
||||
* The otherPermanent choice removes the word "other" from rule text creation.
|
||||
*/
|
||||
public SupportAbility(Card card, int amount, boolean otherPermanent) {
|
||||
super(new SupportEffect(card, amount, otherPermanent));
|
||||
if (!card.isInstant() && !card.isSorcery()) {
|
||||
FilterCreaturePermanent filter = new FilterCreaturePermanent("creatures");
|
||||
if (card.isCreature()) {
|
||||
|
|
@ -31,6 +35,10 @@ public class SupportAbility extends EntersBattlefieldTriggeredAbility {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public SupportAbility(Card card, int amount){ this( card, amount, true); }
|
||||
|
||||
|
||||
public SupportAbility(final SupportAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue