wordbots / wordbots-core

Client-side code for Wordbots, the card game where YOU make the cards.
http://wordbots.io
MIT License
22 stars 4 forks source link

[Important] Cannot choose target for activate if is within movement range, attack range, or placement range. #1882

Open Zergla opened 7 months ago

Zergla commented 7 months ago

When an ability needs to choose a target to be used, if the target could be attacked instead, you cannot use activate, it will just deselect the ability. Same thing happen for activating on an empty tile that could be walked on.

For example, this robot can't activate before moving : https://app.wordbots.io/card/pcierkijju

It also means a robot with an ability meant to be used on an adjacent enemy robot need to have defender to work, which make them weaker than intended to "can't activate" effects : https://app.wordbots.io/card/azie2ubsc1

Zergla commented 6 months ago

As shown by: Startup: Create a 0/0/0 robot named "Second Structure" on an empty tile up to 2 tiles away, then choose every robot with 0 health, then that robot become a copy of this structure. (Written that way to not create an infinite loop) This bug also affects on "Startup:" abilities. (You cannot choose the second structure to be placed on a tile that was a valid tile to place the structure.) But the behavior here is even worse: Suppose, in this situation, I choose to place the first structure on this hex: image Then I click on this hex. image As it was a valid placement for the first structure, the game now believes this is where I want the first structure to be placed, rather than the ability target. However, the valid target list doesn't change for some reason. Now, if I click on this hex: image It is a valid hex for the ability, and an invalid hex for the placement, meaning the second structure get placed. image So now, I have the second structure 4 tiles away from the first, despite the ability normally limiting it to 2 tiles away.

Also adding important to the title because that's the worst issue right now, most of the other are weird edge case while this one actually make the game less playable, affecting like half card I ever made.