diff --git a/nwn/trunk/include/prc_inc_function.nss b/nwn/trunk/include/prc_inc_function.nss index 733d93be..324c1f3d 100644 --- a/nwn/trunk/include/prc_inc_function.nss +++ b/nwn/trunk/include/prc_inc_function.nss @@ -1,6 +1,6 @@ //:://///////////////////////////////////////////// //:: [PRC Feat Router] -//:: [inc_prc_function.nss] +//:: [prc_inc_function.nss] //::////////////////////////////////////////////// //:: This file serves as a hub for the various //:: PRC passive feat functions. If you need to diff --git a/nwn/trunk/scripts/prc_prereq.nss b/nwn/trunk/scripts/prc_prereq.nss index 31590215..3ff44f87 100644 --- a/nwn/trunk/scripts/prc_prereq.nss +++ b/nwn/trunk/scripts/prc_prereq.nss @@ -687,6 +687,19 @@ void WildMageReq(object oPC) SetLocalInt(oPC, "PRC_PresWildMageReq", 0); } +void Warmind(object oPC) +{ + SetLocalInt(oPC, "PRC_AllowWarmind", 1); + + int iPwrPoints = GetMaximumPowerPoints(oPC); + +//:: Requires at least one Power Point + if (iPwrPoints > 0) + { + SetLocalInt(oPC, "PRC_AllowWarmind", 0); + } +} + void DalQuor(object oPC) { SetLocalInt(oPC, "PRC_PrereqDalQuor", 1); @@ -1503,6 +1516,7 @@ void main() RacialHD(oPC); Virtuoso(oPC); LichPrereq(oPC); + Warmind(oPC); DalQuor(oPC); Pyro(oPC); Suel();