Keep Annotations on Stack

This commit is contained in:
ZeldaZach 2024-12-31 13:37:00 -05:00
parent ded6d5b8eb
commit 75b7205310
No known key found for this signature in database
6 changed files with 16 additions and 8 deletions

View file

@ -217,13 +217,15 @@ void CardItem::setAttachedTo(CardItem *_attachedTo)
}
}
void CardItem::resetState()
void CardItem::resetState(bool keepAnnotations)
{
attacking = false;
facedown = false;
counters.clear();
pt.clear();
annotation.clear();
if (!keepAnnotations) {
annotation.clear();
}
attachedTo = 0;
attachedCards.clear();
setTapped(false, false);