mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-04 16:49:04 +00:00
Added in randomToggle check to burying bones (#35)
* bandaid fix fletching * local * Removed prayer random if user has randoms toggled off.
This commit is contained in:
committed by
Daniel Ginovker
parent
4c90e2c6a5
commit
d9e3d08ff8
@@ -55,10 +55,12 @@ public class Prayer {
|
||||
}
|
||||
|
||||
private static void handleBones(final Client c, int i, int slot) {
|
||||
if (Misc.random(300) == 4 && c.shadeSpawned == false) {
|
||||
Zombie.spawnZombie(c);
|
||||
} else if (Misc.random(300) == 2 && c.zombieSpawned == false) {
|
||||
Shade.spawnShade(c);
|
||||
if(!c.randomToggle) {
|
||||
if (Misc.random(300) == 4 && c.shadeSpawned == false) {
|
||||
Zombie.spawnZombie(c);
|
||||
} else if (Misc.random(300) == 2 && c.zombieSpawned == false) {
|
||||
Shade.spawnShade(c);
|
||||
}
|
||||
}
|
||||
for (final int[] element : data) {
|
||||
if (i == element[0]) {
|
||||
|
||||
Reference in New Issue
Block a user