I didn't steal ur solution, i completed it... And as i said, i already used this "system".
as they dont detect spell damage.
Yes PurplePoot, you're right. This detects attack damage only, but i think this is what it is supposed to do! The other code detects every type of damage. This one is cool!