'mob_run_block' and 'mob_check_block' macros

This commit is contained in:
Ghommie
2020-05-08 18:52:32 +02:00
parent 5e0235bd76
commit a412e840f7
15 changed files with 40 additions and 38 deletions
+1 -1
View File
@@ -304,7 +304,7 @@
return
else
if(cooldown_check < world.time)
if(target.run_block(src, 0, "[user]'s [name]", ATTACK_TYPE_MELEE, 0, user) & BLOCK_SUCCESS)
if(target.mob_run_block(src, 0, "[user]'s [name]", ATTACK_TYPE_MELEE, 0, user, null, null) & BLOCK_SUCCESS)
playsound(target, 'sound/weapons/genhit.ogg', 50, 1)
return
if(ishuman(target))