timers: Fix leagues area teleport bug
Teleporting using a trailblazer leagues area teleport previously caused a home or minigame teleport timer to be created, depending on which of the two was most recently stored as `lastTeleportClicked`. To avoid this, a new TeleportWidget has been registered which does not follow any code paths in the plugin.
This commit is contained in:
@@ -162,6 +162,7 @@ public class WidgetID
|
||||
public static final int CHAMBERS_OF_XERIC_STORAGE_UNIT_INVENTORY_GROUP_ID = 551;
|
||||
public static final int DUEL_INVENTORY_GROUP_ID = 421;
|
||||
public static final int DUEL_INVENTORY_OTHER_GROUP_ID = 481;
|
||||
public static final int TRAILBLAZER_AREAS_GROUP_ID = 512;
|
||||
|
||||
static class WorldMap
|
||||
{
|
||||
@@ -936,4 +937,9 @@ public class WidgetID
|
||||
{
|
||||
static final int CONTAINER = 6;
|
||||
}
|
||||
|
||||
static class TrailblazerAreas
|
||||
{
|
||||
static final int TELEPORT = 59;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -544,7 +544,10 @@ public enum WidgetInfo
|
||||
GAUNTLET_TIMER_CONTAINER(WidgetID.GAUNTLET_TIMER_GROUP_ID, WidgetID.GauntletTimer.CONTAINER),
|
||||
HALLOWED_SEPULCHRE_TIMER_CONTAINER(WidgetID.HALLOWED_SEPULCHRE_TIMER_GROUP_ID, WidgetID.HallowedSepulchreTimer.CONTAINER),
|
||||
|
||||
HEALTH_OVERLAY_BAR(WidgetID.HEALTH_OVERLAY_BAR_GROUP_ID, WidgetID.EncounterHealthBar.CONTAINER);
|
||||
HEALTH_OVERLAY_BAR(WidgetID.HEALTH_OVERLAY_BAR_GROUP_ID, WidgetID.EncounterHealthBar.CONTAINER),
|
||||
|
||||
TRAILBLAZER_AREA_TELEPORT(WidgetID.TRAILBLAZER_AREAS_GROUP_ID, WidgetID.TrailblazerAreas.TELEPORT),
|
||||
;
|
||||
|
||||
private final int groupId;
|
||||
private final int childId;
|
||||
|
||||
Reference in New Issue
Block a user