- Fixed AI not using Rebound.

This commit is contained in:
Sloth
2013-04-24 13:22:36 +00:00
parent 44f8326b73
commit 3673028c5b

View File

@@ -70,4 +70,28 @@ public class PlayAi extends SpellAbilityAi {
} }
return chance; return chance;
} }
/**
* <p>
* doTriggerAINoCost
* </p>
* @param sa
* a {@link forge.card.spellability.SpellAbility} object.
* @param mandatory
* a boolean.
* @param af
* a {@link forge.card.ability.AbilityFactory} object.
*
* @return a boolean.
*/
@Override
protected boolean doTriggerAINoCost(final AIPlayer ai, final SpellAbility sa, final boolean mandatory) {
final Target tgt = sa.getTarget();
if (tgt != null) {
return false;
}
return true;
}
} }