Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#2920 closed enhancement (worksforme)

Adding Non-Stackable Attribute To Auras

Reported by: Nikos Owned by:
Priority: Should Have Milestone:
Component: UI & Simulation Keywords:
Cc: Patch:

Description

Many units have planned auras such as celtic druids, war elephants etc. The problem is that those are currently only designed for heroes and adding one to a normal unit makes the effect double for each nearby extra unit of that type, breaking balance. An option to prevent this would make auras much more handy and help implement missing features.

Change History (6)

comment:1 by Radagast, 9 years ago

You need to register the Aura + Entity template globally and only add the effect if it's not already registered if this option "isUniqueAura && isGlobalAura" is defined. Pretty straight forward, any half-way programmer can add it within some minutes.

For ranged auras it's a bit more complicated, when adding the bonus, check if such modifications in a row already exist in the target entity. Could be costly but works as it identifies an Aura.

When removing the bonus of one entity nearby pay attention to only remove the modifications if it's the last aura of this kind within the range. May be costly for performance.

Last edited 9 years ago by Radagast (previous) (diff)

comment:2 by mimo, 9 years ago

Milestone: Alpha 18Backlog

comment:3 by sanderd17, 9 years ago

Did you test this? I think I implemented this from the start. Per unit type, the aura is only applied once.

comment:4 by sanderd17, 8 years ago

Milestone: Backlog
Resolution: worksforme
Status: newclosed

comment:5 by elexis, 8 years ago

Keywords: aura stack unit removed

comment:6 by elexis, 8 years ago

Refs #3792

Note: See TracTickets for help on using tickets.