Skip to content

Commit

Permalink
Direct Hits from Tesla Ball no longer drains from the Plasmadrain Imm…
Browse files Browse the repository at this point in the history
…une (#16751)
  • Loading branch information
Runian authored Nov 25, 2024
1 parent 0e92659 commit 863b03b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/projectiles/ammo_types/energy_ammo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
/datum/ammo/energy/tesla/on_hit_mob(mob/target_mob, obj/projectile/proj)
if(isxeno(target_mob)) //need 1 second more than the actual effect time
var/mob/living/carbon/xenomorph/X = target_mob
if(X.xeno_caste.caste_flags & CASTE_PLASMADRAIN_IMMUNE)
return
X.use_plasma(0.3 * X.xeno_caste.plasma_max * X.xeno_caste.plasma_regen_limit) //Drains 30% of max plasma on hit

/datum/ammo/energy/lasburster
Expand Down

0 comments on commit 863b03b

Please sign in to comment.