mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Completes the /datum/component/shadekin work (#11148)
Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
52b6360a09
commit
3e095bf5db
@@ -57,13 +57,11 @@
|
||||
last_pulse = world.time
|
||||
use_power(1500)
|
||||
|
||||
for (var/mob/O in viewers(src, null))
|
||||
if(get_dist(src, O) > range)
|
||||
for(var/mob/living/O in range(range, src))
|
||||
var/datum/component/shadekin/SK = O.get_shadekin_component()
|
||||
if(!SK)
|
||||
continue
|
||||
if(ishuman(O))
|
||||
var/mob/living/carbon/human/H = O
|
||||
if(H.get_species() == SPECIES_SHADEKIN && (H.ability_flags & AB_PHASE_SHIFTED))
|
||||
H.attack_dephase(null, src)
|
||||
SK.attack_dephase(null, src) //Won't dephase them if they're not in phase. It has built in checks.
|
||||
|
||||
/obj/machinery/bluespace_denier/emp_act(severity)
|
||||
if(stat & (BROKEN|NOPOWER))
|
||||
|
||||
Reference in New Issue
Block a user