Assorted Shadekin Fixes (#19253)

* no flashes in phase

* flashbangs in phase

* phased shadekin don't explode

* phased shadekin aren't emped

* no splurting phased kin either

* can't change medical equipment in phase

* forbid phased mob mounting

* prevent an exploit

* do it here too

* another pr

* minimize whitespace

* minimize
This commit is contained in:
Will
2026-03-09 00:38:13 +01:00
committed by GitHub
parent e10b708ac4
commit 0d5db7f957
9 changed files with 26 additions and 2 deletions
+4 -1
View File
@@ -162,7 +162,8 @@
//attack_as_weapon
/obj/item/flash/attack(mob/living/target, mob/living/user, var/target_zone)
if(!user || !target) return //sanity
if(!user || !target || target.is_incorporeal())
return //sanity
add_attack_logs(user,target,"Flashed (attempt) with [src]")
@@ -208,6 +209,8 @@
return FALSE
if(target.stat == DEAD) //no point, they're already gone.
return FALSE
if(target.is_incorporeal()) // SHADEEEKINNNNNNN
return FALSE
if(FLASHPROOF in target.mutations)
return FALSE
var/flash_strength = 5
@@ -28,6 +28,9 @@
qdel(src)
/obj/item/grenade/flashbang/proc/bang(var/turf/T , var/mob/living/carbon/M) // Added a new proc called 'bang' that takes a location and a person to be banged.
if(M.is_incorporeal())
return
to_chat(M, span_danger("BANG")) // Called during the loop that bangs people in lockers/containers and when banging
playsound(src, 'sound/effects/bang.ogg', 50, 1, 30) // people in normal view. Could theroetically be called during other explosions.
// -- Polymorph