mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
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:
parent
219cfdc583
commit
c069cf4235
2 changed files with 5 additions and 2 deletions
|
@ -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('.');
|
||||
|
|
|
@ -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() + ".";
|
||||
|
|
Loading…
Reference in a new issue