mirror of
https://github.com/correl/mage.git
synced 2025-03-17 01:06:26 -09:00
- Fixed Declaration In Stone.
This commit is contained in:
parent
0b2f7ffcdb
commit
f52bc17ca5
1 changed files with 5 additions and 1 deletions
|
@ -98,7 +98,10 @@ class DeclarationInStoneEffect extends OneShotEffect {
|
||||||
nonTokenCount++;
|
nonTokenCount++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
cardsToExile.add(targetPermanent);
|
if (cardsToExile.add(targetPermanent)
|
||||||
|
&& !(targetPermanent instanceof PermanentToken)) {
|
||||||
|
nonTokenCount++;
|
||||||
|
}
|
||||||
for (Permanent permanent : game.getBattlefield().getAllActivePermanents(new FilterCreaturePermanent(), targetPermanent.getControllerId(), game)) {
|
for (Permanent permanent : game.getBattlefield().getAllActivePermanents(new FilterCreaturePermanent(), targetPermanent.getControllerId(), game)) {
|
||||||
if (!permanent.getId().equals(targetPermanent.getId())
|
if (!permanent.getId().equals(targetPermanent.getId())
|
||||||
&& permanent.getName().equals(targetPermanent.getName())) {
|
&& permanent.getName().equals(targetPermanent.getName())) {
|
||||||
|
@ -112,6 +115,7 @@ class DeclarationInStoneEffect extends OneShotEffect {
|
||||||
}
|
}
|
||||||
controller.moveCards(cardsToExile, Zone.EXILED, source, game);
|
controller.moveCards(cardsToExile, Zone.EXILED, source, game);
|
||||||
game.applyEffects();
|
game.applyEffects();
|
||||||
|
System.out.println("The nonTokenCount is " + nonTokenCount);
|
||||||
if (nonTokenCount > 0) {
|
if (nonTokenCount > 0) {
|
||||||
new ClueArtifactToken().putOntoBattlefield(nonTokenCount, game, source.getSourceId(), targetPermanent.getControllerId(), false, false);
|
new ClueArtifactToken().putOntoBattlefield(nonTokenCount, game, source.getSourceId(), targetPermanent.getControllerId(), false, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue