Manipulating Mana Pool values

Status
Not open for further replies.
Level 2
Joined
Dec 8, 2023
Messages
10
Hi!

I cannot seem to find a way to customize a units max mana (or hp). The triggers I can see only changes the current hp/mana and not the value of the max mana/hp.

I am trying to make a skill in which the hero for every (n) seconds gets (x) to max mana.

Also, is there a way to manipulate the value of a units armor/defense?

Question: does armor not only reduce physical damage but also other damage like spell or magic?

Thanks!
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
Hi!

I cannot seem to find a way to customize a units max mana (or hp). The triggers I can see only changes the current hp/mana and not the value of the max mana/hp.

I am trying to make a skill in which the hero for every (n) seconds gets (x) to max mana.

Also, is there a way to manipulate the value of a units armor/defense?

Question: does armor not only reduce physical damage but also other damage like spell or magic?

Thanks!
Type the word "hp", "mana", or "max" in the Search For Text box and you'll find these:
  • Actions
    • Unit - Set Max HP of (Triggering unit) to 500
    • Unit - Set Max Mana of (Triggering unit) to 300
I believe they were added in patch 1.32.

Otherwise, you can rely on Item Abilities which add Life/Mana.
 
Level 24
Joined
Feb 27, 2019
Messages
833
Question: does armor not only reduce physical damage but also other damage like spell or magic?
Armor does not reduce damage from spells. Generic spell damage is attack type spells and damage type universal. For spell damage to be reduced by armor the attack type should be spells and damage type could be f.e. normal.
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
Otherwise, you can rely on Item Abilities which add Life/Mana.
And in this regard, the item abilities do not add any HP/MP to the unit when given to them and leveled up. But they do remove the stats they should have added when the ability is removed from the unit. So instead of giving the ability +15 HP and adding it to the unit, you’ll set it to give -15 HP then add to and remove it from the unit.
 
Status
Not open for further replies.
Top