Open fheroes2bugs opened 1 year ago
Hi @oleg-derevenetz , I believe you improved this behavior some time ago, didn't you?
Hi @ihhub
I believe you improved this behavior some time ago, didn't you?
Yes, but the current implementation doesn't take into account abilities of the enemy units.
At version 1.1.0 unicorns try to defend druids, but druids still get killed:
Also I want to metion, that in this battle phoenix does 0 damage to dragons. Phoenix want to defend elfs, but elfs die after dragons attack:
The battle:
https://github.com/ihhub/fheroes2/assets/145407420/60095537-ea1a-4d91-8dde-083c960ab265
Preliminary checks
Describe the problem requiring a solution
If a 2-cell creature (i.e. wolf, champion, cavalry, unicorn, hydra, griffin, roc, medusa, nomad) wants to defend a ranged unit from a 2-cell attacking creature (i.e. dragon, phoenix, cyplop) he is standing not in front of ranged creature. Example: Starting postion:
Phoenix wants to defend druids:
That was a mistake, druids die from dragons attack:
https://github.com/ihhub/fheroes2/assets/145407420/a6644d3a-95f8-4bba-b3dd-8205c5f13ab7
Describe the possible solution
When playing against a 2-cell attacking creature (i.e. dragon, phoenix, cyplop) make a 2-cell creature (i.e. wolf, champion, cavalry, unicorn, hydra, griffin, roc, medusa, nomad) stay in front of ranged unit, so a dragon would not attack both of 2 units in one turn.
Additional info
version 1.09 save: defence dragon.zip