Skip to content

Commit a56df78

Browse files
authored
bugfix: Засосывание двух людей в ДНК одновременно (#6509)
* bugfix: Засосывание двух людей в ДНК одновременно * fuck
1 parent f1a5392 commit a56df78

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

code/game/dna/dna_modifier.dm

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,19 @@
259259
if(!do_after(user, 2 SECONDS, M))
260260
return
261261

262+
if(occupant)
263+
balloon_alert(user, "внутри кто-то есть!")
264+
return
265+
var/mob/living/L = M
266+
if(!istype(L) || L.buckled)
267+
return
268+
if(L.abiotic())
269+
balloon_alert(user, "руки субъекта заняты!")
270+
return
271+
if(L.has_buckled_mobs()) //mob attached to us
272+
to_chat(user, span_warning("[L] не помест[pluralize_ru(L.gender, "ит", "ят")]ся в [declent_ru(ACCUSATIVE)], пока на [genderize_ru(L.gender, "нём", "ней", "нём", "них")] сидит слайм!"))
273+
return
274+
262275
M.forceMove(src)
263276
occupant = M
264277
icon_state = "scanner_occupied"

0 commit comments

Comments
 (0)