mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Goblin Cohort - Fixed that it could attack without the need to cast a creature spell before.
This commit is contained in:
parent
319d3add72
commit
13ca02536e
1 changed files with 1 additions and 11 deletions
|
@ -40,9 +40,6 @@ import mage.constants.Duration;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
import mage.constants.WatcherScope;
|
import mage.constants.WatcherScope;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
|
||||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
|
||||||
import mage.filter.predicate.permanent.AnotherPredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.events.GameEvent;
|
import mage.game.events.GameEvent;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
|
@ -83,13 +80,6 @@ public class GoblinCohort extends CardImpl {
|
||||||
|
|
||||||
class GoblinCohortEffect extends RestrictionEffect {
|
class GoblinCohortEffect extends RestrictionEffect {
|
||||||
|
|
||||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent("another artifact");
|
|
||||||
|
|
||||||
static {
|
|
||||||
filter.add(new CardTypePredicate(CardType.ARTIFACT));
|
|
||||||
filter.add(new AnotherPredicate());
|
|
||||||
}
|
|
||||||
|
|
||||||
public GoblinCohortEffect() {
|
public GoblinCohortEffect() {
|
||||||
super(Duration.WhileOnBattlefield);
|
super(Duration.WhileOnBattlefield);
|
||||||
staticText = "{this} can't attack unless you've cast a creature spell this turn";
|
staticText = "{this} can't attack unless you've cast a creature spell this turn";
|
||||||
|
@ -126,7 +116,7 @@ class PlayerCastCreatureWatcher extends Watcher {
|
||||||
Set<UUID> playerIds = new HashSet<>();
|
Set<UUID> playerIds = new HashSet<>();
|
||||||
|
|
||||||
public PlayerCastCreatureWatcher() {
|
public PlayerCastCreatureWatcher() {
|
||||||
super("CastCreature", WatcherScope.GAME);
|
super("PlayerCastCreature", WatcherScope.GAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
public PlayerCastCreatureWatcher(final PlayerCastCreatureWatcher watcher) {
|
public PlayerCastCreatureWatcher(final PlayerCastCreatureWatcher watcher) {
|
||||||
|
|
Loading…
Reference in a new issue