From 2e65f0d186ed1798770c3ccb6e44f157d7b7ed1a Mon Sep 17 00:00:00 2001 From: randy Date: Sun, 10 Nov 2024 19:06:13 -0700 Subject: [PATCH] Changed combat spells to only consume runes 33% of the time This is part of the attempt to balance ammo production and consumption rates. --- .../core/game/node/entity/combat/spell/MagicSpell.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Server/src/main/core/game/node/entity/combat/spell/MagicSpell.java b/Server/src/main/core/game/node/entity/combat/spell/MagicSpell.java index cf003c648..6259add5a 100644 --- a/Server/src/main/core/game/node/entity/combat/spell/MagicSpell.java +++ b/Server/src/main/core/game/node/entity/combat/spell/MagicSpell.java @@ -222,12 +222,12 @@ public abstract class MagicSpell implements Plugin { } if (caster instanceof Player) { Player p = (Player) caster; - if(p.getEquipment().get(3) != null && p.getEquipment().get(3).getId() == 14726){ - if(RandomFunction.getRandom(100) < 13){ - p.sendMessage("Your staff negates the rune requirement of the spell."); + //if(p.getEquipment().get(3) != null && p.getEquipment().get(3).getId() == 14726){ + if(RandomFunction.getRandom(100) > 33){ + //p.sendMessage("Your staff negates the rune requirement of the spell."); return true; } - } + //} if (runes == null) { return true; }