As many of you may know damage detection systems in Warcraft don't really work. The problem being that you end up creating a trigger with a huge list of event attached to it. Now you can use the DestroyTrigger function to get rid of these leaked events but it seems that destroying triggers is not in itself safe.
My question is this: How does the Warcraft engine itself deal damage? Couldn't we just hook the function that it uses to deal damage?
The only functions that I know of for dealing damage are UnitDamageTarget and UnitDamagePoint. Does the engine use these to calculate attack damage?
My question is this: How does the Warcraft engine itself deal damage? Couldn't we just hook the function that it uses to deal damage?
The only functions that I know of for dealing damage are UnitDamageTarget and UnitDamagePoint. Does the engine use these to calculate attack damage?