• 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.

Do auras with same base id stack?

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,338
Hi,

Suppose I create five identical auras off of Devotion Aura. They all have identical states, except their rawcodes are different:

e.g.

AD01
AD02
AD03
AD04
AD05

What will happen if I have a unit that is affected by more than one of these auras, e.g.

AD01, AD02

Will they stack?

If they do not stack, what happens in the case of them being different levels?

e.g. LVL 2 AD01 gives +3 armor but LVL 1 AD01 gives +1.5 armor

Will the highest leveled aura take priority?
 
Level 14
Joined
Sep 28, 2011
Messages
968
If i remember well the aura with the higher effect of an precise type (like devotion) will be the one applied and if there is multiple aura of the same type only one is applied. So an unit which is near an unit with an devotion aura of three armor and an other with one of five armor will have a bonus of five
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
I thought you could stack them as long as they didn't use the same buff?

I believe the buff type doesnt matter and whoever posted above me. If you're next to a unit with +10% endurance and another with +20% endurance, the +20% would be applied untill he went out of range

E/ question is different.

If I'm not mistaken, the higher level aura takes precedence, even if. I'll test it real fast i have WE up

2E/ wrong on both counts.

Different buffs stack. +5 devotion with Devotion Aura and +5 devotion with Cloud buffs stacked for +10 armor

lvl 1 +5 armor and lvl 3 +1 armor ended at +5 armor at level 1 buff
 
Level 12
Joined
Nov 3, 2013
Messages
989
Yes, but what I'm getting at is that most likely you won't have 2 of the same aura with different values that share the same buff (and ability name).

In what map would you be able to make 2 different units with the same aura and same description but different bonus? One of them would be made useless.

So the "actual" question should be, can you stack auras of the same base if they have different buffs? (Which I thought you could)

Edit: Unless you want to prevent auras from items to stack with their standard counterparts

Edit2:
Different buffs stack. +5 devotion with Devotion Aura and +5 devotion with Cloud buffs stacked for +10 armor

lvl 1 +5 armor and lvl 3 +1 armor ended at +5 armor at level 1 buff

thx for confirming also a bit interesting value > level, what would happen if it's an aura that would normally give a boon but instead made into a negative effect for enemies. Would it take the lower level then as well since the value would be higher?
 
Level 15
Joined
Aug 7, 2013
Messages
1,338
It must be the buff, otherwise negative auras wouldn't work correctly...

e.g. a negative devotion aura and a positive devotion aura cancel out each other's bonuses because they stack...

if they did not stack, then the higher level aura would only be active.

@Death Adder

As for when this would happen:

Suppose I have a pool of abilities that are assigned randomly to a hero (added via a native call). Some of these abilities are spells and others passives (e.g. auras). Suppose the set of abilities is far greater than the number of possible hotkeys, each ability will need several copies of itself, each with a different hotkey (e.g. Tidal Wave and Holy Light cannot both be "T"). We'd like to keep a correlation between button position and hotkey, i.e. QWERTY (forgetting the (0,2) button). So at some point unless I do a lot of clever maths or am lucky, I'll need to decide determinstically where the aura/passives go, so instead I just assign them positions too, and make a copy of the aura for each one. But since they share the same buff, they won't stack even though they are technically different abilities.

I could be wrong and if you've got a better solution tell me please haha!
 
Level 12
Joined
Nov 3, 2013
Messages
989
Do you need hotkeys for the passives? If they are active even when not displayed then can't you have the real ones in a disabled spell book? Then when you want to show them on hero tab add dummy passive that doesn't do anything.

I might be missing things and can't really seem to understand what the problem is :3
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
Dude if you don't want positive and negative devotion aura's stack/cancel each other, use different buff's for positive ones and another buff for negative ones.

About auras with same buff, the higher effect overrides others.
 
Level 15
Joined
Aug 7, 2013
Messages
1,338
@Ceday don't forget to read the other posts :p
Different buffs stack. +5 devotion with Devotion Aura and +5 devotion with Cloud buffs stacked for +10 armor
If I'm not mistaken, the higher level aura takes precedence
It must be the buff, otherwise negative auras wouldn't work correctly...

e.g. a negative devotion aura and a positive devotion aura cancel out each other's bonuses because they stack...

if they did not stack, then the higher level aura would only be active.
 
Status
Not open for further replies.
Top