Browse Source

blood rune check work

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
5cd94234e9
  1. 13
      src/engine/net/client/msg/ApplyRuneMsg.java

13
src/engine/net/client/msg/ApplyRuneMsg.java

@ -275,7 +275,19 @@ public class ApplyRuneMsg extends ClientNetMsg { @@ -275,7 +275,19 @@ public class ApplyRuneMsg extends ClientNetMsg {
if (runes.size() > 12) {
return false;
}
boolean isBloodRune = false;
switch (rb.getName()) {
case "Born of the Ethyri":
case "Born of the Taripontor":
case "Born of the Gwendannen":
case "Born of the Invorri":
case "Born of the Irydnu":
isBloodRune = true;
break;
}
boolean hasBloodRune = false;
if(isBloodRune) {
for (CharacterRune charRune : playerCharacter.getRunes()) {
RuneBase rb2 = charRune.getRuneBase();
switch (rb2.getName()) {
@ -288,6 +300,7 @@ public class ApplyRuneMsg extends ClientNetMsg { @@ -288,6 +300,7 @@ public class ApplyRuneMsg extends ClientNetMsg {
break;
}
}
}
if(hasBloodRune){
ChatManager.chatSystemError(playerCharacter, "You Have Already Applied A Blood Rune");
return false;

Loading…
Cancel
Save