mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Add Oracle support for persistent & Fix persistent on reverse-related (#4742)
* fix persistent reverse-related * create relations from spellbook property * run format.sh
This commit is contained in:
parent
f25e4785ae
commit
44d1ab348b
2 changed files with 16 additions and 4 deletions
|
|
@ -587,9 +587,9 @@ void CardDatabase::refreshCachedReverseRelatedCards()
|
|||
continue;
|
||||
}
|
||||
|
||||
auto *newCardRelation = new CardRelation(card->getName(), cardRelation->getDoesAttach(),
|
||||
cardRelation->getIsCreateAllExclusion(),
|
||||
cardRelation->getIsVariable(), cardRelation->getDefaultCount());
|
||||
auto *newCardRelation = new CardRelation(
|
||||
card->getName(), cardRelation->getDoesAttach(), cardRelation->getIsCreateAllExclusion(),
|
||||
cardRelation->getIsVariable(), cardRelation->getDefaultCount(), cardRelation->getIsPersistent());
|
||||
cards.value(targetCard)->addReverseRelatedCards2Me(newCardRelation);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue