pvpupdate: attackable pvp world levels from 15 to 10 (#2293)
* Update MiscUtils.java * Update PvPUtil.java
This commit is contained in:
@@ -70,7 +70,7 @@ public class MiscUtils
|
|||||||
|
|
||||||
if (client.getWorldType().stream().anyMatch(worldType -> worldType == WorldType.PVP || worldType == WorldType.HIGH_RISK))
|
if (client.getWorldType().stream().anyMatch(worldType -> worldType == WorldType.PVP || worldType == WorldType.HIGH_RISK))
|
||||||
{
|
{
|
||||||
wildernessLevel += 15;
|
wildernessLevel += 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Math.max(0, wildernessLevel);
|
return Math.max(0, wildernessLevel);
|
||||||
|
|||||||
@@ -72,9 +72,9 @@ public class PvPUtil
|
|||||||
{
|
{
|
||||||
if (client.getVar(Varbits.IN_WILDERNESS) != 1)
|
if (client.getVar(Varbits.IN_WILDERNESS) != 1)
|
||||||
{
|
{
|
||||||
return Math.abs(client.getLocalPlayer().getCombatLevel() - player.getCombatLevel()) <= 15;
|
return Math.abs(client.getLocalPlayer().getCombatLevel() - player.getCombatLevel()) <= 10;
|
||||||
}
|
}
|
||||||
wildernessLevel = 15;
|
wildernessLevel = 10;
|
||||||
}
|
}
|
||||||
return Math.abs(client.getLocalPlayer().getCombatLevel() - player.getCombatLevel())
|
return Math.abs(client.getLocalPlayer().getCombatLevel() - player.getCombatLevel())
|
||||||
< (getWildernessLevelFrom(client.getLocalPlayer().getWorldLocation()) + wildernessLevel);
|
< (getWildernessLevelFrom(client.getLocalPlayer().getWorldLocation()) + wildernessLevel);
|
||||||
|
|||||||
Reference in New Issue
Block a user