mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
add dependency checks for card.linked_card_x
This commit is contained in:
@@ -459,8 +459,8 @@ bool CardListBase::doLink() {
|
||||
bool CardListBase::doUnlink(CardP linked_card) {
|
||||
CardP selected_card = getCard();
|
||||
vector<ActionP> actions;
|
||||
actions.emplace_back(make_intrusive<OneWayLinkCardsAction>(*set, selected_card, _(""), _(""), selected_card->findUIDLink(linked_card->uid)));
|
||||
actions.emplace_back(make_intrusive<OneWayLinkCardsAction>(*set, linked_card, _(""), _(""), linked_card->findUIDLink(selected_card->uid)));
|
||||
actions.emplace_back(make_intrusive<OneWayLinkCardsAction>(selected_card, _(""), _(""), selected_card->findUIDLink(linked_card->uid)));
|
||||
actions.emplace_back(make_intrusive<OneWayLinkCardsAction>(linked_card, _(""), _(""), linked_card->findUIDLink(selected_card->uid)));
|
||||
set->actions.addAction(make_unique<BulkAction>(actions, set, this, false), false);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user