forked from MagicBane/Server
blood rune check work
This commit is contained in:
@@ -276,18 +276,12 @@ public class ApplyRuneMsg extends ClientNetMsg {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isBloodRune = false;
|
|
||||||
switch (rb.getName()) {
|
switch (rb.getName()) {
|
||||||
case "Born of the Ethyri":
|
case "Born of the Ethyri":
|
||||||
case "Born of the Taripontor":
|
case "Born of the Taripontor":
|
||||||
case "Born of the Gwendannen":
|
case "Born of the Gwendannen":
|
||||||
case "Born of the Invorri":
|
case "Born of the Invorri":
|
||||||
case "Born of the Irydnu":
|
case "Born of the Irydnu":
|
||||||
isBloodRune = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
boolean hasBloodRune = false;
|
|
||||||
if(isBloodRune) {
|
|
||||||
for (CharacterRune charRune : playerCharacter.getRunes()) {
|
for (CharacterRune charRune : playerCharacter.getRunes()) {
|
||||||
RuneBase rb2 = charRune.getRuneBase();
|
RuneBase rb2 = charRune.getRuneBase();
|
||||||
switch (rb2.getName()) {
|
switch (rb2.getName()) {
|
||||||
@@ -296,15 +290,11 @@ public class ApplyRuneMsg extends ClientNetMsg {
|
|||||||
case "Born of the Gwendannen":
|
case "Born of the Gwendannen":
|
||||||
case "Born of the Invorri":
|
case "Born of the Invorri":
|
||||||
case "Born of the Irydnu":
|
case "Born of the Irydnu":
|
||||||
hasBloodRune = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(hasBloodRune){
|
|
||||||
ChatManager.chatSystemError(playerCharacter, "You Have Already Applied A Blood Rune");
|
ChatManager.chatSystemError(playerCharacter, "You Have Already Applied A Blood Rune");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
//if discipline, check number applied
|
//if discipline, check number applied
|
||||||
if (isDiscipline(runeID)) {
|
if (isDiscipline(runeID)) {
|
||||||
if (playerCharacter.getLevel() < 70) {
|
if (playerCharacter.getLevel() < 70) {
|
||||||
|
|||||||
Reference in New Issue
Block a user