kandashi / Active-Auras

MIT License
28 stars 36 forks source link

Deduplicating Auras #243

Open tprussak opened 1 year ago

tprussak commented 1 year ago

I have two paladins one one of my games, and I would like the auras of protection to not stack.

Describe the solution you'd like An option for auras of the same name to not stack. Preferably, it will choose the better one, but that might be difficult to implement.

Describe alternatives you've considered I have tried setting the "effects with the same name do not stack" option on the effect itself, but this only prevents the paladin from receiving the benefit of the other paladin's aura. Other allies in the area of both auras gain both benefits.

tprussak commented 1 year ago

"Effects with the same name do not stack" seems to work somewhat but has some significant issues. If the two paladins approach a single friendly token, only the first one in range applies. However, if one of the paladins leave, the same aura stays on the first target, regardless of which paladin leaves. For example, if one has a +3, and the other has a +5, if the +5 comes first, then the +3 comes in range, then the +5 leaves, the +5 effect will be maintained until the +3 also leaves. In addition, it appears that on friendly NPC's, the effects will stack, but not on friendly PC's. Both copies of the effect on an NPC will be maintained until both paladins exit the range. Edit: After deleting and recreating the PC token that was the source of one of the auras, I can no longer stack the effects on friendly NPCs.

PendragonX1 commented 1 year ago

I got the same problem with paladins. Although this seems to be an issue with the aura effect on an NPC that is the same, EX you put 2 of the same NPC's down and they both have the same aura effect only one will apply. However, if you have the same effect on multiple different NPC's it stacks for some reason.