Fixing instant vitality exhaustion.

This commit is contained in:
MobiusDev
2015-11-10 13:51:28 +00:00
parent d55457c730
commit 582b62ff2f

View File

@ -742,7 +742,7 @@ public class PcStat extends PlayableStat
}
else
{
points = MIN_VITALITY_POINTS;
points = Math.max(getActiveChar().getVitalityPoints() + points, MIN_VITALITY_POINTS);
}
if (Math.abs(points - getActiveChar().getVitalityPoints()) <= 1e-6)