[MIRROR] Moths can't eat indestructible items [MDB IGNORE] (#19158)

* Moths can't eat indestructible items (#73171)

## About The Pull Request

Prevents mothmen from eating indestructible clothings like the advanced
magboots

## Why It's Good For The Game

Closes https://github.com/tgstation/tgstation/issues/66923 and makes
indestructible items not be destructible through the power of your damn
mouth.

## Changelog

🆑
fix: Moths can no longer eat indestructible items (like the CE's
magboots)
/🆑

* Moths can't eat indestructible items

---------

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-02-04 17:39:55 +01:00
committed by GitHub
parent 77d95f783c
commit 7b5cef7492
+1 -1
View File
@@ -95,7 +95,7 @@
/obj/item/clothing/attack(mob/living/target, mob/living/user, params)
if(user.combat_mode || !ismoth(target) || ispickedupmob(src))
return ..()
if(clothing_flags & INEDIBLE_CLOTHING)
if((clothing_flags & INEDIBLE_CLOTHING) || (resistance_flags & INDESTRUCTIBLE))
return ..()
if(isnull(moth_snack))
moth_snack = new