Prevent attacking vore mobs from within them (#627)

This commit is contained in:
Eearslya Sleiarion
2016-10-05 09:50:04 -07:00
committed by Spades
parent b1b0f28938
commit 2e5f80175c

View File

@@ -310,6 +310,8 @@
M.do_attack_animation(src) M.do_attack_animation(src)
if(I_HURT) if(I_HURT)
if (M.loc == src)
return // VOREStation Edit
adjustBruteLoss(harm_intent_damage) adjustBruteLoss(harm_intent_damage)
M.visible_message("\red [M] [response_harm] \the [src]") M.visible_message("\red [M] [response_harm] \the [src]")
M.do_attack_animation(src) M.do_attack_animation(src)
@@ -637,4 +639,4 @@
if(!target_mob || enroute) if(!target_mob || enroute)
spawn(10) spawn(10)
if(!src.stat) if(!src.stat)
horde() horde()