Skip to content
Son Guhun edited this page Dec 20, 2020 · 3 revisions

This page contains some notes about the behavior of the Warcraft III engine when faced with certain edge cases:

Heroic Units and Ride Hippogryph

Ride Hippo and -makehero: New version does not work for either unit. Old version does not work if rider is a hero, but it does work if mount is a hero. Does not crash.

In-scope units and out-of-scope units

After a unit has been removed: If it was saved in an array, you can still retrieve its handle id (not user data though). It will not equal null. If it was stored in a hashtable, then you cannot retrieve its handle id (the function will return null)

If you have a unit that was stored in an array and has been removed, this unit refenrece is special: Even if it had been in a group, it will return as not being in that group. It also cannot be removed from the group (probably)

In-scope units: Units that have not been removed from the game. Out-of-scope units: Unit references to units that havee been removed from the game (they aren't null and have a handle ID,