The relevant script isn't included in the file, so I can't check it, but I would guess that it's setting Link->HP rather than using built-in damage handling.