fix angy ghost not hurting notplayer

This commit is contained in:
bgkillas 2024-10-08 07:40:20 -04:00
parent df36bc7e5a
commit 2069bdce0a

View file

@ -10,6 +10,9 @@ function wand_fired( wand_id )
local shooter
if EntityHasTag(root, "ew_peer") and not EntityHasTag(root, "ew_notplayer") then
shooter = EntityGetWithTag("player_unit")[1]
if EntityHasTag(shooter, "ew_notplayer") then
shooter = root
end
else
shooter = root
end