mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- 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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user