- The AI will now use the ability of Shirei, Shizo's Caretaker.

This commit is contained in:
Sloth
2013-03-16 08:04:20 +00:00
parent 9749394426
commit 23fb1054ba
4 changed files with 23 additions and 17 deletions

View File

@@ -7,6 +7,7 @@ import java.util.Map;
import forge.Card;
import forge.Singletons;
import forge.card.ability.AbilityFactory;
import forge.card.ability.ApiType;
import forge.card.cost.Cost;
import forge.card.mana.ManaCost;
@@ -405,6 +406,10 @@ public class WrappedAbility extends Ability implements ISpellAbility {
return;
}
}
} else {
if (triggerParams.containsKey("DelayedTrigger")) {
//TODO: The only card with an optional delayed trigger is Shirei, Shizo's Caretaker,
// needs to be expanded when a more difficult cards comes up
} else {
ArrayList<Object> tgts = null;
// make sure the targets won't change
@@ -423,6 +428,7 @@ public class WrappedAbility extends Ability implements ISpellAbility {
}
}
}
}
if (getActivatingPlayer().isHuman()) {
game.getActionPlay().playSpellAbilityNoStack(getActivatingPlayer(), sa, true);