Merge pull request #6505 from Heroman3003/tension

Fixes runtime in tension.dm
This commit is contained in:
Anewbe
2019-10-30 20:59:27 -04:00
committed by VirgoBot
parent 9eb9fd4b51
commit c7e21a5412

View File

@@ -24,7 +24,7 @@
will_point_blank = ai_holder.pointblank
var/potential_damage = 0
if(!projectiletype || ( get_dist(src, threatened >= 1) && !will_point_blank ) ) // Melee damage.
if(!projectiletype || ( ( get_dist(src, threatened) >= 1) && !will_point_blank ) ) // Melee damage.
potential_damage = (melee_damage_lower + melee_damage_upper) / 2
// Treat potential_damage as estimated DPS. If the enemy attacks twice as fast as usual, it will double the number.