v0.3.1b: refactored paralysis, now works properly when there are multiple paralysis sources

This commit is contained in:
Evan Debenham
2015-09-03 19:06:14 -04:00
parent 7f5e4a8d22
commit 9c861427e3
8 changed files with 17 additions and 23 deletions
@@ -76,7 +76,7 @@ public class Hunger extends Buff implements Hero.Doom {
if (isStarving()) {
if (Random.Float() < 0.3f && (target.HP > 1 || !target.paralysed)) {
if (Random.Float() < 0.3f && (target.HP > 1 || target.paralysed == 0)) {
hero.damage( 1, this );