- Changed the order of checks in canBePlayedAndPayedByAI to canPlay and then canPlayAI (this should speed things up and prevent possible NPE's).

This commit is contained in:
Sloth
2011-10-17 21:05:11 +00:00
parent f6d1e11559
commit d968d28352

View File

@@ -343,7 +343,7 @@ public class ComputerUtil {
* @since 1.0.15
*/
static public boolean canBePlayedAndPayedByAI(SpellAbility sa) {
return sa.canPlayAI() && sa.canPlay() && canPayCost(sa);
return sa.canPlay() && sa.canPlayAI() && canPayCost(sa);
}
/**