mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +00:00
DetachedCardEffect LKI copying
This commit is contained in:
@@ -222,7 +222,11 @@ public class CardCopyService {
|
||||
bread.setData("Player", copyFrom.getController().getName());
|
||||
Sentry.addBreadcrumb(bread);
|
||||
|
||||
final Card newCopy = new Card(copyFrom.getId(), copyFrom.getPaperCard(), copyFrom.getGame(), null);
|
||||
final Card newCopy;
|
||||
if(copyFrom instanceof DetachedCardEffect)
|
||||
newCopy = new DetachedCardEffect((DetachedCardEffect) copyFrom, false);
|
||||
else
|
||||
newCopy = new Card(copyFrom.getId(), copyFrom.getPaperCard(), copyFrom.getGame(), null);
|
||||
cachedMap.put(copyFrom.getId(), newCopy);
|
||||
newCopy.setSetCode(copyFrom.getSetCode());
|
||||
newCopy.setOwner(copyFrom.getOwner());
|
||||
|
||||
Reference in New Issue
Block a user