mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- A better and more correct fix for X propagation.
This commit is contained in:
@@ -234,14 +234,13 @@ public class HumanPlaySpellAbility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ability.setSVar("X", value.toString());
|
ability.setSVar("X", value.toString());
|
||||||
|
card.setSVar("X", value.toString());
|
||||||
|
|
||||||
// announce to subabilities
|
// announce to subabilities
|
||||||
SpellAbility sub = ability.getSubAbility();
|
SpellAbility sub = ability;
|
||||||
do {
|
while ((sub = sub.getSubAbility()) != null) {
|
||||||
sub.setSVar("X", value.toString());
|
sub.setSVar("X", value.toString());
|
||||||
} while ((sub = sub.getSubAbility()) != null);
|
};
|
||||||
|
|
||||||
card.setSVar("X", value.toString());
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user