mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 20:47:10 +01:00
Makes incorporeal moving mobs immune to tipping (#26303)
* Makes incorporeal moving mobs immune to tipping * Lewc review
This commit is contained in:
@@ -795,6 +795,9 @@
|
||||
if(isliving(target))
|
||||
var/mob/living/L = target
|
||||
|
||||
if(L.incorporeal_move)
|
||||
continue
|
||||
|
||||
if(crit_case)
|
||||
damage_to_deal *= crit_damage_factor
|
||||
if(iscarbon(L))
|
||||
|
||||
+3
@@ -420,6 +420,9 @@
|
||||
return
|
||||
|
||||
if(isliving(AM) && prob(aggressive_tilt_chance))
|
||||
var/mob/living/to_be_tipped = AM
|
||||
if(to_be_tipped.incorporeal_move) // OooOooOoo spooky ghosts
|
||||
return
|
||||
AM.visible_message(
|
||||
"<span class='danger'>[src] suddenly topples over onto [AM]!</span>",
|
||||
"<span class='userdanger'>[src] topples over onto you without warning!</span>"
|
||||
|
||||
Reference in New Issue
Block a user