clean some of the most frequent copy constructor / copy method (#11053)

This commit is contained in:
Susucre 2023-08-31 01:48:03 +02:00 committed by GitHub
parent 5ddb69e1ba
commit 96a2c277b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
66 changed files with 132 additions and 134 deletions

View file

@ -30,7 +30,7 @@ public abstract class AdventureCard extends CardImpl {
spellCard.finalizeAdventure();
}
public AdventureCard(AdventureCard card) {
protected AdventureCard(final AdventureCard card) {
super(card);
this.spellCard = card.getSpellCard().copy();
this.spellCard.setParentCard(this);