diff options
author | Nathan Vance <nathav63@gmail.com> | 2015-03-30 21:16:17 -0400 |
---|---|---|
committer | Nathan Vance <nathav63@gmail.com> | 2015-03-30 21:16:17 -0400 |
commit | 84a9208b7f7713d9c94b23d60757051ffde586a4 (patch) | |
tree | c66d37b8519d8d11029da6e1b10112ae62bdd5e8 /ai.c | |
parent | Started work on special wonder actions (diff) | |
download | 7w-84a9208b7f7713d9c94b23d60757051ffde586a4.tar.gz 7w-84a9208b7f7713d9c94b23d60757051ffde586a4.tar.bz2 7w-84a9208b7f7713d9c94b23d60757051ffde586a4.zip |
Added more special actions
Diffstat (limited to 'ai.c')
-rw-r--r-- | ai.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |