exaV / screeps-kotlin-types

Screep's Kotlin type definitions
MIT License
17 stars 18 forks source link

StructureTower.attack() not able to attack PowerCreep or Structure #49

Closed WilhelmOks closed 4 years ago

WilhelmOks commented 4 years ago

The screeps docs say that a tower can attack one of the three: Creep, PowerCreep, Structure. https://docs.screeps.com/api/#StructureTower.attack

In the kotlin types however, the attack() function can only take a Creep as parameter. I see no workaround here to be able to attack power-creeps or structures.

exaV commented 4 years ago

Fixed in 1.6.1 see a991360

WilhelmOks commented 4 years ago

Awesome work! Thanks.