mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
fixed Hubris bouncing equipment (fixes #4167)
This commit is contained in:
parent
73286628a0
commit
7bab56e910
1 changed files with 7 additions and 1 deletions
|
@ -99,7 +99,13 @@ class HubrisReturnEffect extends OneShotEffect {
|
|||
for (UUID targetId : targetPointer.getTargets(game, source)) {
|
||||
Permanent creature = game.getPermanent(targetId);
|
||||
if (creature != null) {
|
||||
Cards cardsToHand = new CardsImpl(creature.getAttachments());
|
||||
Cards cardsToHand = new CardsImpl();
|
||||
for (UUID cardId : creature.getAttachments()) {
|
||||
Permanent card = game.getPermanent(cardId);
|
||||
if (card != null && card.hasSubtype(SubType.AURA, game)) {
|
||||
cardsToHand.add(card);
|
||||
}
|
||||
}
|
||||
cardsToHand.add(creature);
|
||||
controller.moveCards(cardsToHand, Zone.HAND, source, game);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue