Fixed Missing Cooldown
This commit is contained in:
parent
5d88861b8c
commit
7b5b648e97
11
cooldowns.py
11
cooldowns.py
@ -50,6 +50,9 @@ class Cooldowns_Module:
|
||||
|
||||
selectedCooldown:Cooldown = self.getCooldown(name)
|
||||
|
||||
if selectedCooldown == None:
|
||||
return None
|
||||
|
||||
timenow = datetime.datetime.now()
|
||||
|
||||
if len(selectedCooldown.actionList) >= selectedCooldown.cooldownActionLimit:
|
||||
@ -78,6 +81,14 @@ if __name__ == "__main__":
|
||||
cdName = "test"
|
||||
testCD.setupCooldown(cdName, 20, 2)
|
||||
|
||||
print("CD Test 0: ")
|
||||
for x in range(20):
|
||||
testCD.actionTrigger("cdName")
|
||||
sleep(0)
|
||||
print(testCD.isCooldownActive("cdName"))
|
||||
print("//Test Done//")
|
||||
sleep(2)
|
||||
|
||||
print("CD Test 1: ")
|
||||
for x in range(20):
|
||||
testCD.actionTrigger(cdName)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user