Community board buff skill id protection.

This commit is contained in:
MobiusDev
2017-09-07 13:26:04 +00:00
parent 9f8daca70b
commit bde00f08b9
15 changed files with 83 additions and 13 deletions

View File

@@ -198,7 +198,10 @@ public final class HomeBoard implements IParseBoardHandler
for (int i = 0; i < buffCount; i++)
{
final Skill skill = SkillData.getInstance().getSkill(Integer.parseInt(buypassOptions[i].split(",")[0]), Integer.parseInt(buypassOptions[i].split(",")[1]));
if (!Config.COMMUNITY_AVAILABLE_BUFFS.contains(skill.getId()))
{
continue;
}
targets.stream().filter(target -> !target.isSummon()).forEach(target ->
{
skill.applyEffects(activeChar, target);