mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
StaticAbility: Fixed layer Problem with my recent changes
This commit is contained in:
@@ -150,7 +150,7 @@ public class StaticAbility extends CardTraitBase {
|
||||
layers.add(StaticAbilityLayer.MODIFYPT);
|
||||
}
|
||||
|
||||
if (layers.isEmpty() || this.mapParams.containsKey("AddHiddenKeyword")) {
|
||||
if (this.mapParams.containsKey("AddHiddenKeyword")) {
|
||||
// special rule for can't have or gain
|
||||
if (this.mapParams.get("AddHiddenKeyword").contains("can't have or gain")) {
|
||||
layers.add(StaticAbilityLayer.ABILITIES1);
|
||||
@@ -158,6 +158,10 @@ public class StaticAbility extends CardTraitBase {
|
||||
layers.add(StaticAbilityLayer.RULES);
|
||||
}
|
||||
|
||||
if (layers.isEmpty()) {
|
||||
layers.add(StaticAbilityLayer.RULES);
|
||||
}
|
||||
|
||||
return layers;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user