Depending on how old are your logs, this code might be invalid as damage was nerfed at some point between 4.2 and 4.3