BlzSetUnitAbilityManaCost
- Parameters
whichUnit unitabilId integerlevel integermanaCost integer- comment
Set manacost of an ability (at ability level) for a unit. Works as expected, so you can dynamically calculate the mana cost.
- bug
v1.29.2: Crashes when loading a saved game after this function was used on a unit. Confirmed as fixed as of v1.31.1. Crash likely related to
BlzSetUnitAbilityCooldown.- patch
1.29.2.9231
- Source
- common.j (suggest an edit or discuss on Github)
- return type
nothing- Source code
native BlzSetUnitAbilityManaCost takes unit whichUnit, integer abilId, integer level, integer manaCost returns nothing