mathsman5133 / coc.py

Python API Wrapper for Clash of Clans.
https://cocpy.readthedocs.io/en/latest/
MIT License
123 stars 41 forks source link

Incorrect Minimum Level being returned on Siege Machines #143

Closed btimothy-har closed 1 year ago

btimothy-har commented 1 year ago
troop = coc_client.get_troop(name="Siege Barracks",townhall=12)
m = troop.get_max_level_for_townhall(12)

returns m == 3, which is incorrect as Siege Barracks is not available at TH12.

Same issue persists for the following sieges at TH12:

And at TH11:

majordoobie commented 1 year ago

Doesn't TH12 have siege barracks? I am working gon a unit test to make sure our changes work but looking it up it looks like we have it right? Am I reading this incorrectly? https://clashofclans.fandom.com/wiki/Siege_Barracks

majordoobie commented 1 year ago

Ah sorry I was looking at the wrong link. Thanks! I'll write the unit test then merge the PR for it.