aboutsummaryrefslogtreecommitdiff
path: root/ai.c
diff options
context:
space:
mode:
authorNathan Vance <nathav63@gmail.com>2015-03-30 21:16:17 -0400
committerNathan Vance <nathav63@gmail.com>2015-03-30 21:16:17 -0400
commit84a9208b7f7713d9c94b23d60757051ffde586a4 (patch)
treec66d37b8519d8d11029da6e1b10112ae62bdd5e8 /ai.c
parentStarted work on special wonder actions (diff)
download7w-84a9208b7f7713d9c94b23d60757051ffde586a4.tar.gz
7w-84a9208b7f7713d9c94b23d60757051ffde586a4.tar.bz2
7w-84a9208b7f7713d9c94b23d60757051ffde586a4.zip
Added more special actions
Diffstat (limited to 'ai.c')
-rw-r--r--ai.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ai.c b/ai.c
index e166585..e9a1bdf 100644
--- a/ai.c
+++ b/ai.c
@@ -32,7 +32,7 @@ int* ai_bestcard(int *hand, int player) //return card
temp = weight_buildcard(data_getera(), hand[i], player);
if(data_hasbuiltname(player, data_getera(), hand[i]))
temp = 0;
- else if(! data_canafford(player, data_getera(), hand[i])) {
+ else if(data_canafford(player, data_getera(), hand[i]) != 1) {
trade = ai_trade(player, data_getera(), hand[i]);
if(trade[2]) temp -= trade[2] / 3;
else temp = 0;
bgstack15