Fix Charge timer showing with every teleport
Turns out a lot of things reuse that animation
This commit is contained in:
@@ -26,7 +26,7 @@ package net.runelite.api;
|
|||||||
|
|
||||||
public class GraphicID
|
public class GraphicID
|
||||||
{
|
{
|
||||||
public static final int CHARGE = 111;
|
public static final int TELEPORT = 111;
|
||||||
public static final int ENTANGLE = 179;
|
public static final int ENTANGLE = 179;
|
||||||
public static final int SNARE = 180;
|
public static final int SNARE = 180;
|
||||||
public static final int BIND = 181;
|
public static final int BIND = 181;
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ public enum GameTimer
|
|||||||
GOD_WARS_ALTAR("altar", "God wars altar", 10, ChronoUnit.MINUTES),
|
GOD_WARS_ALTAR("altar", "God wars altar", 10, ChronoUnit.MINUTES),
|
||||||
ANTIPOISON("antipoison", "Antipoison", 90, ChronoUnit.SECONDS),
|
ANTIPOISON("antipoison", "Antipoison", 90, ChronoUnit.SECONDS),
|
||||||
SUPERANTIPOISON("superantipoison", "Superantipoison", 346, ChronoUnit.SECONDS),
|
SUPERANTIPOISON("superantipoison", "Superantipoison", 346, ChronoUnit.SECONDS),
|
||||||
CHARGE("charge", "Charge", GraphicID.CHARGE, 6, ChronoUnit.MINUTES);
|
CHARGE("charge", "Charge", 6, ChronoUnit.MINUTES);
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private final String imageResource;
|
private final String imageResource;
|
||||||
|
|||||||
@@ -402,6 +402,11 @@ public class TimersPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
createGameTimer(PRAYER_ENHANCE);
|
createGameTimer(PRAYER_ENHANCE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.showCharge() && event.getMessage().equals("<col=ef1020>You feel charged with magic power.</col>"))
|
||||||
|
{
|
||||||
|
createGameTimer(CHARGE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
@@ -431,11 +436,6 @@ public class TimersPlugin extends Plugin
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.showCharge() && actor.getGraphic() == CHARGE.getGraphicId())
|
|
||||||
{
|
|
||||||
createGameTimer(CHARGE);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (config.showImbuedHeart() && actor.getGraphic() == IMBUEDHEART.getGraphicId())
|
if (config.showImbuedHeart() && actor.getGraphic() == IMBUEDHEART.getGraphicId())
|
||||||
{
|
{
|
||||||
createGameTimer(IMBUEDHEART);
|
createGameTimer(IMBUEDHEART);
|
||||||
|
|||||||
Reference in New Issue
Block a user