Fixed Caged Zombie in issue #6643

Fixed also cards with the same condition in an activated ability like Skirsdag High Priest

Signed-off-by: Andre Cabaca <andre.cabaca24@gmail.com>
This commit is contained in:
Andre Cabaca 2020-08-21 13:22:52 +01:00
parent 219cfdc583
commit c069cf4235
2 changed files with 5 additions and 2 deletions

View file

@ -37,7 +37,8 @@ public class ActivateIfConditionActivatedAbility extends ActivatedAbilityImpl {
sb.append(" Activate this ability only ");
}
if (!condition.toString().startsWith("during")
&& !condition.toString().startsWith("before")) {
&& !condition.toString().startsWith("before")
&& !condition.toString().startsWith("if")) {
sb.append("if ");
}
sb.append(condition.toString()).append('.');

View file

@ -73,7 +73,9 @@ public class ConditionalActivatedAbility extends ActivatedAbilityImpl {
}
String conditionText = condition.toString();
String additionalText = "if ";
if (conditionText.startsWith("during")) {
if (conditionText.startsWith("during")
|| conditionText.startsWith("before")
|| conditionText.startsWith("if")) {
additionalText = "";
}
return super.getRule() + " Activate this ability only " + additionalText + condition.toString() + ".";