Thread: ABuff System
View Single Post
Old 12-27-2009, 09:26 PM   #179
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,190

Submissions (19)

Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

Quote:
Originally Posted by fX_
would be neat if aBuffDisplay checked if there are other instances of a [buff that stacks] on a unit it is .remove()-ing so that it doesnt remove the buffplacer ability even when there are still other running instances of the buff.
The aBuffDisplay itself does not and will not track it's instances. If you have multiple aBuffs that are all meant to use the same aBuffDisplay, you should make a separate refcounted aBuff that uses this aBuffDisplay and then have all the other aBuffs apply this refcounted aBuff in their create event functions and remove it in their cleanup event functions.
__________________
Anitarf is offline   Reply With Quote