This commit is contained in:
Ghommie
2020-06-08 19:15:51 +02:00
parent 9e19c0bb17
commit c246e13693
+1 -1
View File
@@ -115,7 +115,7 @@
hitpush = FALSE
skipcatch = TRUE
blocked = TRUE
else if(I && (I.throw_speed >= EMBED_THROWSPEED_THRESHOLD || I.embedding.ignore_throwspeed_threshold) && can_embed(I, src) && prob(I.embedding.embed_chance) && !HAS_TRAIT(src, TRAIT_PIERCEIMMUNE) && (!HAS_TRAIT(src, TRAIT_AUTO_CATCH_ITEM) || incapacitated() || get_active_held_item()))
else if(I && (I.throw_speed >= EMBED_THROWSPEED_THRESHOLD || I.embedding.embedded_ignore_throwspeed_threshold) && can_embed(I, src) && prob(I.embedding.embed_chance) && !HAS_TRAIT(src, TRAIT_PIERCEIMMUNE) && (!HAS_TRAIT(src, TRAIT_AUTO_CATCH_ITEM) || incapacitated() || get_active_held_item()))
embed_item(I)
hitpush = FALSE
skipcatch = TRUE //can't catch the now embedded item