• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Disable mana regeneration on specific unit

Status
Not open for further replies.
Level 2
Joined
Apr 13, 2022
Messages
3
Hello everyone!

My question is: Is there a way to disable the Mana Fountain's mana regeneration to work on specific units? I want to make a warrior who uses rage as resource for spells and obviously mana fountains don't regenerate rage, right?

I tried to ad a "Ancient" class to the unit and I add "Non-Ancient" to the "Mana regenetion (Neutral Hostile)"'s target allowed, didn't work.

I would appreciate any kind of help, thank you!
 
You can always trigger the Mana Fountain's mana regeneration. It's a fairly simple trigger that involves storing your fountains in a unit group and periodically searching for units near them. If a unit is found, check if it has > 0 max mana and if it's mana % is < 100, and if both are true proceed to restore it's mana using simple arithmetic.

Set percentage mana of picked unit = percentage mana of picked unit + 1.00
 
Finally had the time and got it working, thank you! I was wondering how could I solve Tome of Intelligence but I guess everytime the warrior picks up a tome I just decrease it's int by the same amount.
I also have to make every item drop on pickup which gives mana bonus. I wish there was a way for this item ability to only give mana for non-warriors. I remember solving this somehow, but nevermind. Warriors will remain stupid. :)
 
You might be able to set 'targets allowed' on all the mana regen passives to include "non-ancient" and then flag the warrior as an "ancient" type unit. Or use another of the classifications like critter/sapper/suicidal.
Unfortunately it doesn't work. I tried it already. In an earlier patch it did work with "tauren" tho.
 
Status
Not open for further replies.
Back
Top