• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] Does a unit get removed from a unit group if it dies AND decays??

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
I have had conflicting results to this.

Hero units do appear to be removed from the group when they are auto removed due to the maximum dead hero limit. ForGroup will not output any null values for those heroes which were automatically removed. However if this is just an API filter or physical removal from the data structure I do not know.

In the past this was not the case. I remember back at WC3Search that there were snippets used to filter unit groups of removed units. In such a case ForGroup would return null for every removed unit and the data structure definitely had a leak until cleared. However that was several patches ago so maybe a hidden change fixed the issue.

I would recommend people re-test.
 
Status
Not open for further replies.
Top