SetHeroStr

Parameters
whichHero unit
newStr integer
permanent boolean
comment

Sets the hero's strength property. If the new strength property is less than current value, the hero will lose HP.

note

Hero cannot lose HP below 1.0, which means that removing X strength and then adding X strength back can result in healing.

patch

1.00

Source
common.j
return type
nothing
Source code
native          SetHeroStr          takes unit whichHero, integer newStr, boolean permanent returns nothing