blood rune check work
This commit is contained in:
@@ -275,17 +275,30 @@ 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;
|
||||
for(CharacterRune charRune : playerCharacter.getRunes()) {
|
||||
RuneBase rb2 = charRune.getRuneBase();
|
||||
switch (rb2.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":
|
||||
hasBloodRune = true;
|
||||
break;
|
||||
if(isBloodRune) {
|
||||
for (CharacterRune charRune : playerCharacter.getRunes()) {
|
||||
RuneBase rb2 = charRune.getRuneBase();
|
||||
switch (rb2.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":
|
||||
hasBloodRune = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(hasBloodRune){
|
||||
|
||||
Reference in New Issue
Block a user