View Single Post
  #4  
Old 01-17-2022, 07:30 PM
Molder Molder is offline
Approved Member
 
Join Date: Nov 2021
Posts: 40
Default

Quote:
Originally Posted by abdoi View Post
I've modded Priestess of blood sacrifice ability in KBS 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.
Reply With Quote