AnAkkk / TFTrue

http://tftrue.esport-tools.net/
GNU General Public License v2.0
38 stars 12 forks source link

Fixed healing property on triggered damage #59

Closed TheBv closed 2 years ago

TheBv commented 2 years ago

Event_PlayerDamage was basically just accessing the wrong index of the m_uiLastHealOnHit array. Also reset the number to make sure it won't log (healing "x") over and over again. One example of this happening: logs.tf/3056638 but there's many more

F2 commented 2 years ago

Maybe store the index in a variable, so we don't have to compute it twice?

int iAttackerIndex = IndexOfEdict(pEdictAttacker)-1;