mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
* Kindred Summons - Fixed that no creatures were put onto the battlefield.
This commit is contained in:
parent
7d1af66162
commit
85b13b88c8
2 changed files with 4 additions and 4 deletions
|
|
@ -43,8 +43,8 @@ import mage.constants.CardType;
|
|||
import mage.constants.Outcome;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.common.FilterCreatureCard;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
|
@ -102,7 +102,7 @@ class KindredSummonsEffect extends OneShotEffect {
|
|||
if (subType == null) {
|
||||
return false;
|
||||
}
|
||||
FilterControlledCreaturePermanent filterPermanent = new FilterControlledCreaturePermanent("creature you control of the chosen type");
|
||||
FilterCreaturePermanent filterPermanent = new FilterCreaturePermanent("creature you control of the chosen type");
|
||||
filterPermanent.add(new SubtypePredicate(subType));
|
||||
int numberOfCards = game.getBattlefield().countAll(filterPermanent, source.getControllerId(), game);
|
||||
Cards revealed = new CardsImpl();
|
||||
|
|
@ -120,7 +120,7 @@ class KindredSummonsEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
controller.revealCards(sourceObject.getIdName(), revealed, game);
|
||||
controller.moveCards(chosenSubtypeCreatureCards, Zone.BATTLEFIELD, source, game, false, false, false, null);
|
||||
controller.moveCards(chosenSubtypeCreatureCards, Zone.BATTLEFIELD, source, game);
|
||||
controller.putCardsOnTopOfLibrary(otherCards, game, source, false);
|
||||
controller.shuffleLibrary(source, game);
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ public class ChooseCreatureTypeEffect extends OneShotEffect {
|
|||
if (!game.isSimulation()) {
|
||||
game.informPlayers(mageObject.getName() + ": " + controller.getLogName() + " has chosen " + typeChoice.getChoice());
|
||||
}
|
||||
game.getState().setValue(mageObject.getId() + "_type", SubType.byDescription(typeChoice.getChoice()));
|
||||
game.getState().setValue(source.getSourceId() + "_type", SubType.byDescription(typeChoice.getChoice()));
|
||||
if (mageObject instanceof Permanent) {
|
||||
((Permanent) mageObject).addInfo("chosen type", CardUtil.addToolTipMarkTags("Chosen type: " + typeChoice.getChoice()), game);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue