Improve backups #33
Labels
No labels
breaking change
duplicate
good first issue
help wanted
invalid
question
scope: card
scope: docs
scope: game
scope: registry
scope: script
scope: tool
scope: universe
tracker
type: bug
type: card request
type: documentation
type: enhancement
type: improvement
type: parity
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
LunarTides/Hearthstone.js#33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Allow cards to have multiple backups.
How it will work:
The backups variable in cards needs to be changed to an object.
The first backup that gets created when the card gets created is called "init".
Card.createBackup() -> Objectcan be called to create a backup and returns the backup created.Card.restoreBackup(backup: Object) -> boolcan be called to restore a backup. It returns success.createBackuprestoreBackup