BlzSetUnitAbilityManaCost

Parameters
whichUnitunit
abilIdinteger
levelinteger
manaCostinteger
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 (raise an issue to discuss on Github or submit a PR)
return type
nothing
Source code
native BlzSetUnitAbilityManaCost                   takes unit whichUnit, integer abilId, integer level, integer manaCost returns nothing