Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 07c3f02

Browse files
committed
Updating drop function of bot to handle a deep copy rather than a shallow copy of the slots to drop
1 parent b0c68c7 commit 07c3f02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/model/bot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
A Bot is a base class for bot script models. It is abstract and cannot be instantiated. Many of the methods in this base class are
33
pre-implemented and can be used by subclasses, or called by the controller. Code in this class should not be modified.
44
"""
5+
import copy
56
import ctypes
67
import platform
78
import re
@@ -332,7 +333,7 @@ def drop(self, slots: List[int], drop_order: DropOrder, misclick_chance: bool) -
332333
If a slot is missed then it will be reattempted after all the others have been attempted.
333334
Offers more human-like behavior if set.
334335
"""
335-
slots_to_drop = slots
336+
slots_to_drop = copy.deepcopy(slots)
336337
probablity_to_miss = 0.01
337338
probablity_to_drag = 0.01
338339
probablity_to_click_between_slots = 0.02

0 commit comments

Comments
 (0)