wordbots / wordbots-core

Client-side code for Wordbots, the card game where YOU make the cards.
http://wordbots.io
MIT License
22 stars 4 forks source link

"Import card" doesn't always work; when it does, it can create illegal cards. #1880

Open Zergla opened 7 months ago

Zergla commented 7 months ago

Create a test card, clicked on export card, clicked on copy to clipboard, deleted the card, pasted the text in import card, nothing happened.

[{"name":"test","type":0,"cost":1,"spriteID":"tmn6tsnymi8","spriteV":2,"text":"","stats":{"attack":1,"health":1,"speed":1},"metadata":{"ownerId":"3dNURsVqXKOrFgqug5ENiO9xbJv1","source":{"type":"user","uid":"3dNURsVqXKOrFgqug5ENiO9xbJv1","username":"Zergla"},"created":1702147405927,"updated":1702147405927,"isPrivate":false},"schema":2}]

Then, I tried importing cards from somebody else, and edited the name during the import; got 2 cards that said they were from the orignal creator, despite the wrong name, and one which I gave negative attack (act like 0 attack) despite the game normally not allowing card with less that 0 attacks. image