sman1975
Emperor
Hey,
Quick question - is there a "straightforward" way to remove the insta-heal promotion using only LUA?
I know there's a brute-force way of checking every unit at the start of the game turn and use something like this:
Is there a less computationally-intense method?
Thanks,
sman
Quick question - is there a "straightforward" way to remove the insta-heal promotion using only LUA?
I know there's a brute-force way of checking every unit at the start of the game turn and use something like this:
Code:
if( player:IsAlive() ) then
for pUnit in player:Units() do
pUnit:SetHasPromotion(0, false)
end
end
Is there a less computationally-intense method?
Thanks,
sman