Forensic Evaluation & LastDamageInfo
Posted: Tue Aug 25, 2009 12:40 pm
Hi to all, today i was reviewing the forensic evaluation scripts in 095 and i found a little problem with the LastDamageInfo system. The SetLastDamageInfo function in damage.inc does not save if the damage was caused by a spell ( and what spell ) or by a weapon or by a poisoned weapon. This is because the SetLastDamageInfo is called by ApplyRawDamageEX and ApplyDamageEX, and both are a very generic functions.
In 095 the method to save the last hit is very ugly but the point is that this is called outside the 095 versions of ApplyRawDamageEX and ApplyDamageEX .
I think that the way to solve this is improve the SetLastDamageInfo and call it behind of ApplyRawDamageEX or ApplyDamageEX, in the CombatHook, damage spells and poison.
Any other idea to solve this?
In 095 the method to save the last hit is very ugly but the point is that this is called outside the 095 versions of ApplyRawDamageEX and ApplyDamageEX .
I think that the way to solve this is improve the SetLastDamageInfo and call it behind of ApplyRawDamageEX or ApplyDamageEX, in the CombatHook, damage spells and poison.
Any other idea to solve this?