Add perfectCopy and imperfectCopy functions to cards. #50

Closed
opened 2023-04-21 17:15:11 +00:00 by LunarTides · 0 comments
LunarTides commented 2023-04-21 17:15:11 +00:00 (Migrated from github.com)

The perfect copy will use

return functions.cloneCard(this);

and imperfectCopy will use

return new Card(this.name, this.plr);

You don't need to change the cards, as the old method still works, but use this in the future for better clarity.

The perfect copy will use ```js return functions.cloneCard(this); ``` and imperfectCopy will use ```js return new Card(this.name, this.plr); ``` You don't need to change the cards, as the old method still *works*, but use this in the future for better clarity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
LunarTides/Hearthstone.js#50
No description provided.