Skip to content

Fix Rune: Biting Gale not being used by tactical AI

Nagyhal requested to merge Nagyhal/t-engine4:master into master

Fix Rune: Biting Gale not being used by tactical AI

This was caused by the lack of a "radius" attribute in the talent definition.

While tactical.lua makes good use of the talent's "target" value, for the initial within_range check it ignores this and uses the sum of what it gets from getTalentRadius and getTalentRange. So, while Biting Gale had a perfectly good target table, because the radius was not stored in a separate radius value the AI was assuming it to have a range of 0, and thus never using it.

DG's verdict was to insist on better-written talents, rather than a more flexible check in the AI routine. Talent creators will need to watch out for this one.

Now, I've searched through all the talents, and not found any other cases exactly like this. I have, however, found a few which could be improved. I'll consider uploading a bundle of such fixes later.

Merge request reports