improved Towny PvP check
set target to null when it is not attackable
fixed thorns used on non living entities