coc.py icon indicating copy to clipboard operation
coc.py copied to clipboard

Wrong data is getting returned from is_elixir_troop attribute

Open Anubhav1603 opened this issue 2 years ago • 1 comments

getting this list -> ['Barbarian', 'Archer', 'Goblin', 'Giant', 'Wall Breaker', 'Balloon', 'Wizard', 'Healer', 'Dragon', 'P.E.K.K.A', 'Baby Dragon', 'Miner', 'Yeti', 'Sneaky Goblin', 'Electro Dragon', 'Dragon Rider']

Error -> Sneaky Goblin is not elixir troop but its included

How to reproduce error

import coc
from coc import utils
fixed_tag = utils.correct_tag(player_tag) 
player = await self.bot.coc.get_player(fixed_tag)
print([f"{t.name}" for t in player.troops if t.is_elixir_troop ])

Anubhav1603 avatar Mar 10 '22 14:03 Anubhav1603

While investigating this in #107 I realized Sneaky Goblins are in fact an elixer troop in game.

masonhorne avatar May 28 '22 23:05 masonhorne

As previously said the sneaky goblin is indeed an elixir troop. And also a super troop. Therefore this is correct.

doluk avatar Jan 27 '23 18:01 doluk