mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
remove support for SVar= string in SubAbility. It has not been required for a long time, and now, is no longer supported. All card files have been updated.
This commit is contained in:
@@ -1324,14 +1324,9 @@ public class AbilityFactory {
|
|||||||
|
|
||||||
String sSub = this.getMapParams().get("SubAbility");
|
String sSub = this.getMapParams().get("SubAbility");
|
||||||
|
|
||||||
if (sSub.startsWith("SVar=")) {
|
|
||||||
sSub = sSub.replace("SVar=", "");
|
|
||||||
}
|
|
||||||
|
|
||||||
sSub = this.getHostCard().getSVar(sSub);
|
sSub = this.getHostCard().getSVar(sSub);
|
||||||
|
|
||||||
if (!sSub.equals("")) {
|
if (!sSub.equals("")) {
|
||||||
// Older style Drawback no longer supported
|
|
||||||
final AbilityFactory afDB = new AbilityFactory();
|
final AbilityFactory afDB = new AbilityFactory();
|
||||||
abSub = (AbilitySub) afDB.getAbility(sSub, this.getHostCard());
|
abSub = (AbilitySub) afDB.getAbility(sSub, this.getHostCard());
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user