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