Merge pull request #5949 from Kyep/mechdisablers

Fixes #3628 - Disablers no longer blow up mechs
This commit is contained in:
Fox McCloud
2016-12-08 19:04:58 -05:00
committed by GitHub
+3 -1
View File
@@ -563,7 +563,9 @@
dam_coeff = B.damage_coeff
break
if(prob(deflect_chance * deflection) && (Proj.damage_type == BRUTE || Proj.damage_type == BURN))
if(Proj.damage_type != BRUTE && Proj.damage_type != BURN)
visible_message("<span class='danger'>[src]'s armour is undamaged by [Proj]!</span>")
else if(prob(deflect_chance * deflection))
visible_message("<span class='danger'>[src]'s armour deflects [Proj]!</span>")
else
visible_message("<span class='danger'>[src] is hit by [Proj].</span>")