From ad1444f5ba8d89363304e04a450a1ae19d87a47a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 24 Aug 2024 19:25:31 -0500 Subject: [PATCH] level 70+ is allowed to apply a fifth disc rune --- src/engine/net/client/msg/ApplyRuneMsg.java | 25 ++++++++++++--------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/engine/net/client/msg/ApplyRuneMsg.java b/src/engine/net/client/msg/ApplyRuneMsg.java index 7b7496c3..86f658ab 100644 --- a/src/engine/net/client/msg/ApplyRuneMsg.java +++ b/src/engine/net/client/msg/ApplyRuneMsg.java @@ -279,16 +279,21 @@ public class ApplyRuneMsg extends ClientNetMsg { } //if discipline, check number applied if (isDiscipline(runeID)) { - //if(playerCharacter.getLevel() == 80) - discCount -= 1; // level 80 characters get an extra disc rune - if (playerCharacter.getLevel() < 70) { - if (discCount > 2) { - return false; - } - } else { - if (discCount > 3) { - return false; - } + switch(playerCharacter.getRank()){ + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + if(discCount > 3) + return false; + break; + case 7: + case 8: + if(discCount > 5) + return false; + break; } } //Everything succeeded. Let's apply the rune