From b44d9ee337eea83105e1feaeda413a2b4b29a289 Mon Sep 17 00:00:00 2001 From: IamVDD Date: Thu, 11 May 2023 10:45:22 +0700 Subject: [PATCH] ok --- Base/Exploding_Kitten/_env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Base/Exploding_Kitten/_env.py b/Base/Exploding_Kitten/_env.py index f399dc3..25fcaa8 100644 --- a/Base/Exploding_Kitten/_env.py +++ b/Base/Exploding_Kitten/_env.py @@ -567,7 +567,7 @@ def stepEnv(env, draw_pile, discard_pile, action): low, high = getCardRange(type_card) # range if np.where(env[low:high] == 6)[0].shape[0] > 0: env[low:high][np.where(env[low:high] == 6)[0][0]] = env[57] - discard_pile[type_card]-=1 + discard_pile[int(type_card)]-=1 env[72] = -1 env[67] = 0