Prime points count should not be negative.

This commit is contained in:
MobiusDev
2017-10-19 20:55:34 +00:00
parent 85774caef6
commit 33340d093f
4 changed files with 4 additions and 4 deletions

View File

@@ -13652,7 +13652,7 @@ public final class L2PcInstance extends L2Playable
{
// Immediate store upon change
final AccountVariables vars = getAccountVariables();
vars.set("PRIME_POINTS", points);
vars.set("PRIME_POINTS", Math.max(points, 0));
vars.storeMe();
}