Fixes the flightpotion check to include new races (again) (#60084)

Flight potions now work on fly people, androids and skeletons.
This commit is contained in:
Sheits
2021-07-16 19:47:02 -03:00
committed by GitHub
parent d3e1e83a17
commit 7676a09f5f
8 changed files with 26 additions and 2 deletions
@@ -630,7 +630,7 @@
if(iscarbon(exposed_mob) && exposed_mob.stat != DEAD)
var/mob/living/carbon/exposed_carbon = exposed_mob
var/holycheck = ishumanbasic(exposed_carbon)
if(reac_volume < 5 || !(holycheck || islizard(exposed_carbon) || ismoth(exposed_carbon))) // implying xenohumans are holy //as with all things,
if(!HAS_TRAIT(exposed_carbon, TRAIT_CAN_USE_FLIGHT_POTION) || reac_volume < 5)
if((methods & INGEST) && show_message)
to_chat(exposed_carbon, span_notice("<i>You feel nothing but a terrible aftertaste.</i>"))
return