Fix: all building tests, Added: BuildingCardTest, Modified: ShamanicRitualTest, PlayableCardTest
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user