mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-19 20:06:28 +01:00
Fixes hostile mobs attacking unraised turrets (#10320)
This commit is contained in:
@@ -182,6 +182,8 @@ mob/living/simple_animal/hostile/hitby(atom/movable/AM as mob|obj,var/speed = TH
|
||||
return B
|
||||
if(istype(target_mob, /obj/machinery/porta_turret))
|
||||
var/obj/machinery/porta_turret/T = target_mob
|
||||
if(!T.raising && !T.raised)
|
||||
return
|
||||
src.do_attack_animation(T)
|
||||
T.take_damage(max(melee_damage_lower, melee_damage_upper) / 2)
|
||||
visible_message(SPAN_DANGER("\The [src] [attacktext] \the [T]!"))
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
author: Ferner
|
||||
delete-after: True
|
||||
changes:
|
||||
- bugfix: "Hostile mobs no longer attack turrets that aren't raised."
|
||||
Reference in New Issue
Block a user