Makes incorporeal moving mobs immune to tipping (#26303)

* Makes incorporeal moving mobs immune to tipping

* Lewc review
This commit is contained in:
DGamerL
2024-08-01 15:09:55 +00:00
committed by GitHub
parent 4d2171d41e
commit 17640b22ec
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -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
View File
@@ -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>"