wrapper will return api (temporary)

This commit is contained in:
Maxmtg
2012-11-10 04:56:36 +00:00
parent 44fb57395c
commit a9927b68eb
3 changed files with 6 additions and 4 deletions

View File

@@ -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);
}
}

View File

@@ -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;
}

View File

@@ -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);