Computer Player instantly casts speed on multiple workers.
Keeper powers can have a delay, example is the POWER_LIGHTNING. But this is configurable and can be put on other powers as well. When the computer player starts casting spells, he will ignore that the power is still on cooldown, and will try casting it, filling the log with errors.
To reproduce:
- Edit magic.cfg, [power11] :
- Add
NEEDS_DELAYtoCastability - Add
Cooldown = 30
- Start map 15, claim the portal, Frameskip a lot
-> Log is filled with entries Warning: [11658] can_cast_spell_f: magic_use_power_on_thing: Player 1 tried to cast POWER_SPEED on a thing which can't be targeted.
Some investigation:
The speedup is done by a computer check calling computer_check_creatures_in_dungeon_rooms_of_kind_for_accelerate, it then instantly speeds up a number of workers (depending on a param), which does not lend itself to a delay. What should happen is that a ComputerTask is created with the repeat_num filled.
This goes beyond the original issue, and helps with making the AI more realistic.