- AI will now use Transform abilities.

This commit is contained in:
Sloth
2013-06-01 07:35:02 +00:00
parent e80f5aacb6
commit 0bfbf986c7

View File

@@ -8,6 +8,9 @@ import forge.game.player.Player;
public class SetStateAi extends SpellAbilityAi { public class SetStateAi extends SpellAbilityAi {
@Override @Override
protected boolean canPlayAI(Player aiPlayer, SpellAbility sa) { protected boolean canPlayAI(Player aiPlayer, SpellAbility sa) {
if (sa.getTarget() == null && "Transform".equals(sa.getParam("Mode"))) {
return true;
}
return false; return false;
} }