Script clean-up Patch

Fixed bugs in some scripts, minor game patches.
This commit is contained in:
ronancpl
2016-08-01 11:17:31 -03:00
parent 63d0e87d4d
commit ab6074a40c
10 changed files with 255 additions and 49 deletions

View File

@@ -61,10 +61,12 @@ function action(mode, type, selection) {
next = false;
else {
for (var i = 0; i < party.size() && next; i++) {
if ((party.get(i).getLevel() >= minLevel) && (party.get(i).getLevel() <= maxLevel))
if ((party.get(i).getLevel() >= minLevel) && (party.get(i).getLevel() <= maxLevel)) {
levelValid += 1;
if (party.get(i).getMapid() == mapId)
inMap += 1;
if (party.get(i).getMapId() == mapId)
inMap += 1;
}
}
if (levelValid < minPlayers || inMap < minPlayers)
next = false;
@@ -77,7 +79,7 @@ function action(mode, type, selection) {
}
else {
em.startInstance(cm.getParty(),cm.getPlayer().getMap());
party = cm.getPlayer().getEventInstance().getPlayers();
party = cm.getParty().getMembers();
}
cm.dispose();
}