Dugy / Legend_of_the_Invincibles

An add-on campaign for the Battle for Wesnoth game
GNU General Public License v3.0
40 stars 22 forks source link

Least unit ability takes precedence #110

Closed gillatine closed 5 years ago

gillatine commented 5 years ago

In attached save file Beelzebub should take Frail tide (30, Gumbrul) and Despair (40, Aigalalis). Instead it takes Frail tide (15, Krux) and Despair (20, Krux). Should take maximum ability value of all surrounding units IMHO. Also I suspect that same would be with Conviction ability but don't have suitable units at hand to test it. LotI2-Corrupted Town Turn 20.gz

matsjoyce commented 5 years ago

This is a known occurrence and is a result of the way wesnoth applies abilities (highest takes precedence, so as these abilities are negative leaderships the lowest is selected). This means that it is not really fixable without a lot of hackery.

Dugy commented 5 years ago

You may report this to the wesnoth developers, there is no good way to work this around in add-on code.

matsjoyce commented 5 years ago

Unless we reimplement all the abilities in lua, which would be a PITA.

Dugy commented 5 years ago

I don't even know how that could be done with the current lua interface.