Implemented Verity Circle

This commit is contained in:
Evan Kranzler 2019-01-04 20:58:02 -05:00
parent a0a77a4b65
commit fd709bcd28
5 changed files with 84 additions and 2 deletions

View file

@ -275,7 +275,7 @@ public class Combat implements Serializable, Copyable<Combat> {
Permanent attackingPermanent = game.getPermanent(attacker);
if (attackingPermanent != null) {
attackingPermanent.setTapped(false);
attackingPermanent.tap(game); // to tap with event finally here is needed to prevent abusing of Vampire Envoy like cards
attackingPermanent.tap(true,game); // to tap with event finally here is needed to prevent abusing of Vampire Envoy like cards
}
}
handleBanding(attacker, game);

View file

@ -25,6 +25,8 @@ public interface Permanent extends Card, Controllable {
boolean tap(Game game);
boolean tap(boolean forCombat, Game game);
/**
* use tap(game)
* <p>

View file

@ -390,11 +390,16 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
@Override
public boolean tap(Game game) {
return tap(false, game);
}
@Override
public boolean tap(boolean forCombat, Game game) {
//20091005 - 701.15a
if (!tapped) {
if (!replaceEvent(EventType.TAP, game)) {
this.tapped = true;
fireEvent(EventType.TAPPED, game);
game.fireEvent(new GameEvent(EventType.TAPPED, objectId, ownerId, controllerId, 0, forCombat));
return true;
}
}