From 4924133416ca5c50fafc94c5babe295cd04d4206 Mon Sep 17 00:00:00 2001
From: FatBoy-DOTC <justin.chucksinsulating@gmail.com>
Date: Fri, 3 May 2024 21:03:32 -0500
Subject: [PATCH] humans can only apply 1 Blood Rune

---
 src/engine/net/client/msg/ApplyRuneMsg.java | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/src/engine/net/client/msg/ApplyRuneMsg.java b/src/engine/net/client/msg/ApplyRuneMsg.java
index accf64a7..33c88b33 100644
--- a/src/engine/net/client/msg/ApplyRuneMsg.java
+++ b/src/engine/net/client/msg/ApplyRuneMsg.java
@@ -10,6 +10,7 @@
 package engine.net.client.msg;
 
 import engine.Enum;
+import engine.gameManager.ChatManager;
 import engine.gameManager.DbManager;
 import engine.net.*;
 import engine.net.client.ClientConnection;
@@ -274,7 +275,23 @@ public class ApplyRuneMsg extends ClientNetMsg {
         if (runes.size() > 12) {
             return false;
         }
-
+        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(hasBloodRune){
+            ChatManager.chatSystemError(playerCharacter, "You Have Already Applied A Blood Rune");
+            return false;
+        }
         //if discipline, check number applied
         if (isDiscipline(runeID)) {
             if (playerCharacter.getLevel() < 70) {