Most should already do that, but if you're looking for a special function...
function hookshotProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal){
if(!minigameCanDamage(%obj.client.player,%col))
return;
//special function crap, or parent::onCollision for normal shot
}
Should work. Not sure.