mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Implemented Verity Circle
This commit is contained in:
parent
a0a77a4b65
commit
fd709bcd28
5 changed files with 84 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@ public interface Permanent extends Card, Controllable {
|
|||
|
||||
boolean tap(Game game);
|
||||
|
||||
boolean tap(boolean forCombat, Game game);
|
||||
|
||||
/**
|
||||
* use tap(game)
|
||||
* <p>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue