mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Fix for #7330.
This commit is contained in:
@@ -506,14 +506,17 @@
|
||||
src.visible_message("The [src.name] armor deflects the projectile")
|
||||
src.log_append_to_last("Armor saved.")
|
||||
return
|
||||
|
||||
if(Proj.damage_type == HALLOSS)
|
||||
use_power(Proj.agony * 5)
|
||||
|
||||
if(!(Proj.nodamage))
|
||||
var/ignore_threshold
|
||||
if(Proj.flag == "taser")
|
||||
use_power(200)
|
||||
return
|
||||
if(istype(Proj, /obj/item/projectile/beam/pulse))
|
||||
ignore_threshold = 1
|
||||
src.take_damage(Proj.damage,Proj.flag)
|
||||
src.check_for_internal_damage(list(MECHA_INT_FIRE,MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST,MECHA_INT_SHORT_CIRCUIT),ignore_threshold)
|
||||
|
||||
Proj.on_hit(src)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user