From 582b62ff2fd84fc51e7db645ab467cb62faea645 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Tue, 10 Nov 2015 13:51:28 +0000 Subject: [PATCH] Fixing instant vitality exhaustion. --- .../java/com/l2jserver/gameserver/model/actor/stat/PcStat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/java/com/l2jserver/gameserver/model/actor/stat/PcStat.java b/trunk/java/com/l2jserver/gameserver/model/actor/stat/PcStat.java index 9decad66f0..632082c9b9 100644 --- a/trunk/java/com/l2jserver/gameserver/model/actor/stat/PcStat.java +++ b/trunk/java/com/l2jserver/gameserver/model/actor/stat/PcStat.java @@ -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)