mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Fixed possibility of getting stuck in attachAuraOnIndirectEnterBattlefield.
This commit is contained in:
@@ -277,6 +277,9 @@ public class AttachEffect extends SpellEffect {
|
|||||||
} else {
|
} else {
|
||||||
List<Card> list = Singletons.getModel().getGame().getCardsIn(tgt.getZone());
|
List<Card> list = Singletons.getModel().getGame().getCardsIn(tgt.getZone());
|
||||||
list = CardLists.getValidCards(list, tgt.getValidTgts(), aura.getActivatingPlayer(), source);
|
list = CardLists.getValidCards(list, tgt.getValidTgts(), aura.getActivatingPlayer(), source);
|
||||||
|
if (list.isEmpty()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
final Object o = GuiChoose.one(source + " - Select a card to attach to.", list);
|
final Object o = GuiChoose.one(source + " - Select a card to attach to.", list);
|
||||||
if (o instanceof Card) {
|
if (o instanceof Card) {
|
||||||
|
|||||||
Reference in New Issue
Block a user