[UDS] Tethered Griffin - fixed wrong rules text (#11108)

This commit is contained in:
Susucre 2023-09-04 06:36:07 +02:00 committed by GitHub
parent 025ebee026
commit 23ad5ccae7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,7 @@ import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.ComparisonType;
import mage.filter.StaticFilters;
import mage.filter.common.FilterEnchantmentPermanent;
import java.util.UUID;
@ -20,6 +21,9 @@ import java.util.UUID;
*/
public final class TetheredGriffin extends CardImpl {
private static final FilterEnchantmentPermanent filter
= new FilterEnchantmentPermanent("no enchantments");
public TetheredGriffin(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{W}");
this.subtype.add(SubType.GRIFFIN);
@ -31,7 +35,7 @@ public final class TetheredGriffin extends CardImpl {
// When you control no enchantments, sacrifice Tethered Griffin.
this.addAbility(new ControlsPermanentsControllerTriggeredAbility(
StaticFilters.FILTER_PERMANENT_ENCHANTMENT, ComparisonType.EQUAL_TO, 0,
filter, ComparisonType.EQUAL_TO, 0,
new SacrificeSourceEffect()));
}