From 1eeddad802c57c4026d4e592f2a9a0a50e639aaf Mon Sep 17 00:00:00 2001 From: Zealar <zealar@mail.bg> Date: Sat, 19 Dec 2015 09:31:21 +0200 Subject: [PATCH] Fix support for DispelBySlotProbability to use levels Fix #272 --- .../handlers/effecthandlers/DispelBySlotProbability.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/game/data/scripts/handlers/effecthandlers/DispelBySlotProbability.java b/dist/game/data/scripts/handlers/effecthandlers/DispelBySlotProbability.java index 882b36ac15..5b45090a4e 100644 --- a/dist/game/data/scripts/handlers/effecthandlers/DispelBySlotProbability.java +++ b/dist/game/data/scripts/handlers/effecthandlers/DispelBySlotProbability.java @@ -55,7 +55,7 @@ public final class DispelBySlotProbability extends AbstractEffect for (String ngtStack : _dispel.split(";")) { String[] ngt = ngtStack.split(","); - _dispelAbnormals.put(AbnormalType.getAbnormalType(ngt[0]), Short.MAX_VALUE); + _dispelAbnormals.put(AbnormalType.getAbnormalType(ngt[0]), (ngt.length > 1) ? Short.parseShort(ngt[1]) : Short.MAX_VALUE); } } else -- GitLab