mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
wrapper will return api (temporary)
This commit is contained in:
@@ -1447,9 +1447,8 @@ public class AbilityFactory {
|
|||||||
|
|
||||||
final Target tgt = sa.getTarget();
|
final Target tgt = sa.getTarget();
|
||||||
|
|
||||||
if (sa.hasParam("RememberTargets")) {
|
if (sa.hasParam("RememberTargets") && tgt != null) {
|
||||||
final ArrayList<Object> tgts = (tgt == null) ? new ArrayList<Object>() : tgt.getTargets();
|
for (final Object o : tgt.getTargets()) {
|
||||||
for (final Object o : tgts) {
|
|
||||||
host.addRemembered(o);
|
host.addRemembered(o);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -560,7 +560,7 @@ public abstract class SpellAbility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If this is not null, then ability was made in a factory
|
// If this is not null, then ability was made in a factory
|
||||||
public final ApiType getApi() {
|
public ApiType getApi() {
|
||||||
return api;
|
return api;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -527,6 +527,9 @@ public class TriggerHandler {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ApiType getApi() { return sa[0].getApi(); }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setPaidHash(final HashMap<String, List<Card>> hash) {
|
public void setPaidHash(final HashMap<String, List<Card>> hash) {
|
||||||
sa[0].setPaidHash(hash);
|
sa[0].setPaidHash(hash);
|
||||||
|
|||||||
Reference in New Issue
Block a user