Comment 9 for bug 530646

Revision history for this message
Raul Ferriz (raul.ferriz) wrote :

Mmm ... then pop_task on attack/defend task only should be called:
a) when home building is destroyed / bulldozed
b) when attacker/defender is on home
c) when attacker is on new conquered home
d) when a fatal fail is acheived (for example when soldier can not find a path to home).

Now, I pop_task also is called:
a) when defender could not find a way to attacker soldier.
b) when attacker can not reach attacking building baseflag.

So the last two cases should be fixed.
a) First case simply seek another soldier, if no soldiers can be achieved, then step to our home and check again (start_task_move home only with a single step).
b) Return home and cancel attack when soldier is inside building.

I will fix them as I have time, but until late this night I think I will not be able to fix them.

Happy hacking!