hello, im trying to make a skript so players can only damage other players if the item is supposed for combat, and for other items it will deal only 0.5 hearts to the victim. My problem is that its doesnt make the attacker really hit the victim, the console just take victim's health and it doesnt work with my Combat log because theres no player that hit the victim but console did. Also it doesnt do any knockback. heres my code
Code:
on damage:
if attacker is player:
if lore of attacker's held item is not "&8Combat":
damage victim by 0.5 hearts
cancel the event