mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 05:09:16 -08:00
fixed protection from multicolor sources - fixed issue 57
This commit is contained in:
parent
ee613eb042
commit
6de60b926d
16 changed files with 45 additions and 4 deletions
|
|
@ -32,6 +32,7 @@ import mage.Constants.Duration;
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.keyword.ProtectionAbility;
|
||||
import mage.choices.ChoiceColor;
|
||||
import mage.filter.Filter.ComparisonScope;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
|
@ -48,6 +49,7 @@ public class GainProtectionFromColorTargetEffect extends GainAbilityTargetEffect
|
|||
super(new ProtectionAbility(new FilterCard()), duration);
|
||||
protectionFilter = (FilterCard)((ProtectionAbility)ability).getFilter();
|
||||
protectionFilter.setUseColor(true);
|
||||
protectionFilter.setScopeColor(ComparisonScope.Any);
|
||||
}
|
||||
|
||||
public GainProtectionFromColorTargetEffect(final GainProtectionFromColorTargetEffect effect) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue