From 84a9208b7f7713d9c94b23d60757051ffde586a4 Mon Sep 17 00:00:00 2001 From: Nathan Vance Date: Mon, 30 Mar 2015 21:16:17 -0400 Subject: Added more special actions --- ai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ai.c') 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; -- cgit