Quote:
Originally Posted by abdoi
I've modded Priestess of blood sacrifice ability in KB S for target unit to not exceed max hero leadership.
But if the hero is wearing an item that reduces leadership req of say red dragons to 1600 instead of original 2000, then how to get the actual reduced leadership in LUA file?
This function "Attack.act_leadership(target)" doesn't get the new reduced value.
P.S. I know the last post is 9 years old but hopefully I get answer
|
Unfortunately, leadership can't be modified properly with any function. The only was is to get some discount with functions in file "special_params.txt". You have to write smth like "sp_lead_orc" and set some units as parameters with discount.