From 50f3cd7c0afa75e120a0ae8bfc78216fcf7f99a6 Mon Sep 17 00:00:00 2001
From: Jaysyn904 <68194417+Jaysyn904@users.noreply.github.com>
Date: Thu, 17 Oct 2024 14:59:05 -0400
Subject: [PATCH] Fixed Incandescent Champion not getting Essentia

Fixed Incandescent Champion not getting Essentia & Thrallherd getting the wrong bonus powers. (thanks @barmlot)
---
 nwn/nwnprc/trunk/include/moi_inc_moifunc.nss | 1 +
 nwn/nwnprc/trunk/psionics/psi_thrallherd.nss | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/nwn/nwnprc/trunk/include/moi_inc_moifunc.nss b/nwn/nwnprc/trunk/include/moi_inc_moifunc.nss
index ab8249c4..4b52f487 100644
--- a/nwn/nwnprc/trunk/include/moi_inc_moifunc.nss
+++ b/nwn/nwnprc/trunk/include/moi_inc_moifunc.nss
@@ -1485,6 +1485,7 @@ int GetTotalEssentia(object oMeldshaper)
 	if (GetLevelByClass(CLASS_TYPE_NECROCARNATE, oMeldshaper)) nEssentia += GetLocalInt(oMeldshaper, "NecrocarnumEssentia");
 	if (GetLevelByClass(CLASS_TYPE_WITCHBORN_BINDER, oMeldshaper) >= 2) nEssentia += 1;
 	if (GetLevelByClass(CLASS_TYPE_WITCHBORN_BINDER, oMeldshaper) >= 6) nEssentia += 1;
+	if (GetLevelByClass(CLASS_TYPE_INCANDESCENT_CHAMPION, oMeldshaper))  nEssentia += GetMaxEssentiaCount(oMeldshaper, CLASS_TYPE_INCANDESCENT_CHAMPION);
 	
 	nEssentia += IncarnumFeats(oMeldshaper);
 	if (DEBUG) DoDebug("GetTotalEssentia return value "+IntToString(nEssentia));
diff --git a/nwn/nwnprc/trunk/psionics/psi_thrallherd.nss b/nwn/nwnprc/trunk/psionics/psi_thrallherd.nss
index 61a75d63..b276ed80 100644
--- a/nwn/nwnprc/trunk/psionics/psi_thrallherd.nss
+++ b/nwn/nwnprc/trunk/psionics/psi_thrallherd.nss
@@ -25,7 +25,7 @@ void main()
             )
         {
             if(DEBUG) DoDebug("psi_thrallherd: Adding Psionic Charm");
-            AddPowerKnown(oPC, nClass, 11, TRUE, GetHitDice(oPC));
+            AddPowerKnown(oPC, nClass, 12, TRUE, GetHitDice(oPC));
             SetKnownPowersModifier(oPC, nClass, ++nPowerTotal);
             SetPersistantLocalInt(oPC, "PRC_Thrallherd_CharmGained", TRUE);
         }
@@ -35,7 +35,7 @@ void main()
             )
         {
             if(DEBUG) DoDebug("psi_thrallherd: Adding Psionic Dominate");
-            AddPowerKnown(oPC, nClass, 167, TRUE, GetHitDice(oPC));
+            AddPowerKnown(oPC, nClass, 193, TRUE, GetHitDice(oPC));
             SetKnownPowersModifier(oPC, nClass, ++nPowerTotal);
             SetPersistantLocalInt(oPC, "PRC_Thrallherd_DominateGained", TRUE);
         }