forked from 2009Scape/Server
Changed combat spells to only consume runes 33% of the time
This is part of the attempt to balance ammo production and consumption rates.
This commit is contained in:
parent
7da14bd3b8
commit
2e65f0d186
1 changed files with 4 additions and 4 deletions
|
|
@ -222,12 +222,12 @@ public abstract class MagicSpell implements Plugin<SpellType> {
|
|||
}
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue