Skip to content
Snippets Groups Projects
Commit 1eeddad8 authored by Zealar's avatar Zealar
Browse files

Fix support for DispelBySlotProbability to use levels

Fix #272
parent d16316c9
Loading
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment