Fix: all building tests, Added: BuildingCardTest, Modified: ShamanicRitualTest, PlayableCardTest

This commit is contained in:
2026-03-21 16:19:50 +01:00
parent e0d4673c6e
commit 6a34354bb5
11 changed files with 85 additions and 33 deletions
@@ -33,7 +33,12 @@ public class BuildingCard extends PlayableCard implements Cloneable , BuildingEf
} else {
throw new IllegalArgumentException();
}
this.prestigeValue = prestigeValue;
if (prestigeValue >= 0) {
this.prestigeValue = prestigeValue;
} else {
throw new IllegalArgumentException();
}
bought = false;
}
public BuildingCard(int effectId,EffectType effectType ,int era,int price,int prestigeValue) throws IllegalArgumentException{