mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
- Fixed Indomitable Creativity. Bug #3029
This commit is contained in:
parent
3a2c828fb8
commit
c4dc0222d8
3 changed files with 6 additions and 6 deletions
|
@ -143,12 +143,12 @@ class IndomitableCreativityEffect extends OneShotEffect {
|
||||||
cards.add(card);
|
cards.add(card);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (card.isCreature() || card.isArtifact()) {
|
|
||||||
controllerOfDestroyedCreature.moveCards(card, Zone.BATTLEFIELD, source, game);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!cards.isEmpty()) {
|
if (!cards.isEmpty()) {
|
||||||
revealCards.addAll(cards);
|
revealCards.addAll(cards);
|
||||||
|
if (card.isCreature() || card.isArtifact()) {
|
||||||
|
controllerOfDestroyedCreature.moveCards(card, Zone.EXILED, source, game);
|
||||||
|
controllerOfDestroyedCreature.moveCards(card, Zone.BATTLEFIELD, source, game);
|
||||||
|
}
|
||||||
Set<Card> cardsToShuffle = cards.getCards(game);
|
Set<Card> cardsToShuffle = cards.getCards(game);
|
||||||
cardsToShuffle.remove(card);
|
cardsToShuffle.remove(card);
|
||||||
library.addAll(cardsToShuffle, game);
|
library.addAll(cardsToShuffle, game);
|
||||||
|
|
|
@ -56,7 +56,7 @@ public class TargetCreaturePermanentSameController extends TargetCreaturePermane
|
||||||
UUID targetId = (UUID) object;
|
UUID targetId = (UUID) object;
|
||||||
Permanent targetPermanent = game.getPermanent(targetId);
|
Permanent targetPermanent = game.getPermanent(targetId);
|
||||||
if (targetPermanent != null) {
|
if (targetPermanent != null) {
|
||||||
if (firstTargetPermanent.getId() != targetPermanent.getId()) {
|
if (!firstTargetPermanent.getId().equals(targetPermanent.getId())) {
|
||||||
if (!firstTargetPermanent.getControllerId().equals(targetPermanent.getOwnerId())) {
|
if (!firstTargetPermanent.getControllerId().equals(targetPermanent.getOwnerId())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ public class TargetCreaturePermanentWithDifferentTypes extends TargetCreaturePer
|
||||||
for (Object object : getTargets()) {
|
for (Object object : getTargets()) {
|
||||||
UUID targetId = (UUID) object;
|
UUID targetId = (UUID) object;
|
||||||
Permanent selectedCreature = game.getPermanent(targetId);
|
Permanent selectedCreature = game.getPermanent(targetId);
|
||||||
if (creature.getId() != selectedCreature.getId()) {
|
if (!creature.getId().equals(selectedCreature.getId())) {
|
||||||
if (CardUtil.shareSubtypes(creature, selectedCreature, game)) {
|
if (CardUtil.shareSubtypes(creature, selectedCreature, game)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue