Prohibit auto using potions at max health.
This commit is contained in:
parent
48b4bde861
commit
93824ac4a3
@ -138,7 +138,7 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Config.ENABLE_AUTO_POTION && !isInPeaceZone && (player.getCurrentHpPercent() <= player.getAutoPlaySettings().getAutoPotionPercent()))
|
if (Config.ENABLE_AUTO_POTION && !isInPeaceZone && (player.getCurrentHpPercent() < player.getAutoPlaySettings().getAutoPotionPercent()))
|
||||||
{
|
{
|
||||||
POTIONS: for (Integer itemId : player.getAutoUseSettings().getAutoPotionItems())
|
POTIONS: for (Integer itemId : player.getAutoUseSettings().getAutoPotionItems())
|
||||||
{
|
{
|
||||||
|
@ -138,7 +138,7 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Config.ENABLE_AUTO_POTION && !isInPeaceZone && (player.getCurrentHpPercent() <= player.getAutoPlaySettings().getAutoPotionPercent()))
|
if (Config.ENABLE_AUTO_POTION && !isInPeaceZone && (player.getCurrentHpPercent() < player.getAutoPlaySettings().getAutoPotionPercent()))
|
||||||
{
|
{
|
||||||
POTIONS: for (Integer itemId : player.getAutoUseSettings().getAutoPotionItems())
|
POTIONS: for (Integer itemId : player.getAutoUseSettings().getAutoPotionItems())
|
||||||
{
|
{
|
||||||
|
@ -138,7 +138,7 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Config.ENABLE_AUTO_POTION && !isInPeaceZone && (player.getCurrentHpPercent() <= player.getAutoPlaySettings().getAutoPotionPercent()))
|
if (Config.ENABLE_AUTO_POTION && !isInPeaceZone && (player.getCurrentHpPercent() < player.getAutoPlaySettings().getAutoPotionPercent()))
|
||||||
{
|
{
|
||||||
POTIONS: for (Integer itemId : player.getAutoUseSettings().getAutoPotionItems())
|
POTIONS: for (Integer itemId : player.getAutoUseSettings().getAutoPotionItems())
|
||||||
{
|
{
|
||||||
|
@ -138,7 +138,7 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Config.ENABLE_AUTO_POTION && !isInPeaceZone && (player.getCurrentHpPercent() <= player.getAutoPlaySettings().getAutoPotionPercent()))
|
if (Config.ENABLE_AUTO_POTION && !isInPeaceZone && (player.getCurrentHpPercent() < player.getAutoPlaySettings().getAutoPotionPercent()))
|
||||||
{
|
{
|
||||||
POTIONS: for (Integer itemId : player.getAutoUseSettings().getAutoPotionItems())
|
POTIONS: for (Integer itemId : player.getAutoUseSettings().getAutoPotionItems())
|
||||||
{
|
{
|
||||||
|
@ -138,7 +138,7 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Config.ENABLE_AUTO_POTION && !isInPeaceZone && (player.getCurrentHpPercent() <= player.getAutoPlaySettings().getAutoPotionPercent()))
|
if (Config.ENABLE_AUTO_POTION && !isInPeaceZone && (player.getCurrentHpPercent() < player.getAutoPlaySettings().getAutoPotionPercent()))
|
||||||
{
|
{
|
||||||
POTIONS: for (Integer itemId : player.getAutoUseSettings().getAutoPotionItems())
|
POTIONS: for (Integer itemId : player.getAutoUseSettings().getAutoPotionItems())
|
||||||
{
|
{
|
||||||
|
@ -138,7 +138,7 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Config.ENABLE_AUTO_POTION && !isInPeaceZone && (player.getCurrentHpPercent() <= player.getAutoPlaySettings().getAutoPotionPercent()))
|
if (Config.ENABLE_AUTO_POTION && !isInPeaceZone && (player.getCurrentHpPercent() < player.getAutoPlaySettings().getAutoPotionPercent()))
|
||||||
{
|
{
|
||||||
POTIONS: for (Integer itemId : player.getAutoUseSettings().getAutoPotionItems())
|
POTIONS: for (Integer itemId : player.getAutoUseSettings().getAutoPotionItems())
|
||||||
{
|
{
|
||||||
|
@ -138,7 +138,7 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Config.ENABLE_AUTO_POTION && !isInPeaceZone && (player.getCurrentHpPercent() <= player.getAutoPlaySettings().getAutoPotionPercent()))
|
if (Config.ENABLE_AUTO_POTION && !isInPeaceZone && (player.getCurrentHpPercent() < player.getAutoPlaySettings().getAutoPotionPercent()))
|
||||||
{
|
{
|
||||||
POTIONS: for (Integer itemId : player.getAutoUseSettings().getAutoPotionItems())
|
POTIONS: for (Integer itemId : player.getAutoUseSettings().getAutoPotionItems())
|
||||||
{
|
{
|
||||||
|
@ -138,7 +138,7 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Config.ENABLE_AUTO_POTION && !isInPeaceZone && (player.getCurrentHpPercent() <= player.getAutoPlaySettings().getAutoPotionPercent()))
|
if (Config.ENABLE_AUTO_POTION && !isInPeaceZone && (player.getCurrentHpPercent() < player.getAutoPlaySettings().getAutoPotionPercent()))
|
||||||
{
|
{
|
||||||
POTIONS: for (Integer itemId : player.getAutoUseSettings().getAutoPotionItems())
|
POTIONS: for (Integer itemId : player.getAutoUseSettings().getAutoPotionItems())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user