Remove idle alerts from Lunar Spells shared animation (#5863)

Closes #5571 

Prevents Idle alert notifications being sent for:

- Fertile Soil
- Boost/Stat Potion Share
- NPC Contact
This commit is contained in:
forsco
2018-10-08 00:54:00 +11:00
committed by Tomas Slusny
parent bd8f75cf30
commit 84fe8d8f58
3 changed files with 14 additions and 4 deletions

View File

@@ -37,6 +37,7 @@ import net.runelite.api.AnimationID;
import static net.runelite.api.AnimationID.*;
import net.runelite.api.Client;
import net.runelite.api.GameState;
import net.runelite.api.GraphicID;
import net.runelite.api.Hitsplat;
import net.runelite.api.NPC;
import net.runelite.api.NPCComposition;
@@ -110,6 +111,7 @@ public class IdleNotifierPlugin extends Plugin
return;
}
int graphic = localPlayer.getGraphic();
int animation = localPlayer.getAnimation();
switch (animation)
{
@@ -203,7 +205,6 @@ public class IdleNotifierPlugin extends Plugin
/* Magic */
case MAGIC_CHARGING_ORBS:
case MAGIC_LUNAR_STRING_JEWELRY:
case MAGIC_LUNAR_BAKE_PIE:
case MAGIC_MAKE_TABLET:
/* Prayer */
case USING_GILDED_ALTAR:
@@ -212,6 +213,13 @@ public class IdleNotifierPlugin extends Plugin
resetTimers();
lastAnimation = animation;
break;
case MAGIC_LUNAR_SHARED:
if (graphic == GraphicID.BAKE_PIE)
{
resetTimers();
lastAnimation = animation;
break;
}
case IDLE:
break;
default: