mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 22:42:03 -08:00
some more cards
This commit is contained in:
parent
429a03b557
commit
df303cbd16
6 changed files with 319 additions and 1 deletions
|
|
@ -30,6 +30,7 @@ package mage.abilities.effects.common.continious;
|
|||
|
||||
import mage.Constants.Duration;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.keyword.ProtectionAbility;
|
||||
import mage.choices.ChoiceColor;
|
||||
import mage.filter.FilterCard;
|
||||
|
|
@ -48,7 +49,6 @@ public class GainProtectionFromColorTargetEffect extends GainAbilityTargetEffect
|
|||
public GainProtectionFromColorTargetEffect(Duration duration) {
|
||||
super(new ProtectionAbility(new FilterCard()), duration);
|
||||
protectionFilter = (FilterCard)((ProtectionAbility)ability).getFilter();
|
||||
staticText = "target creature you control gains protection from the color of your choice " + duration.toString();
|
||||
}
|
||||
|
||||
public GainProtectionFromColorTargetEffect(final GainProtectionFromColorTargetEffect effect) {
|
||||
|
|
@ -75,4 +75,8 @@ public class GainProtectionFromColorTargetEffect extends GainAbilityTargetEffect
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getText(Mode mode) {
|
||||
return "target creature you control gains protection from the color of your choice " + duration.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue