Fix broken dojo scripts since introduction of MapId constants
This commit is contained in:
@@ -70,8 +70,8 @@ function action(mode, type, selection) {
|
||||
if (isRestingSpot(cm.getPlayer().getMap().getId())) {
|
||||
var text = "I'm surprised you made it this far! But it won't be easy from here on out. You still want the challenge?\r\n\r\n#b#L0#I want to continue#l\r\n#L1#I want to leave#l\r\n";
|
||||
|
||||
const GameConstants = Java.type('constants.game.GameConstants');
|
||||
if (!GameConstants.isDojoPartyArea(cm.getPlayer().getMapId())) {
|
||||
const MapId = Java.type('constants.id.MapId');
|
||||
if (!MapId.isPartyDojo(cm.getPlayer().getMapId())) {
|
||||
text += "#L2#I want to record my score up to this point#l";
|
||||
}
|
||||
cm.sendSimple(text);
|
||||
|
||||
Reference in New Issue
Block a user