Updated scripts to use MyPRCGetRacialType

Updated scripts to use MyPRCGetRacialType.  Full compile.
This commit is contained in:
Jaysyn904
2022-09-28 21:36:29 -04:00
parent 8994c41256
commit 0b86a6485c
81 changed files with 142 additions and 74 deletions

View File

@@ -14,6 +14,7 @@
//:://////////////////////////////////////////////
#include "69_hench_lib"
#include "NW_I0_SPELLS"
#include "prc_inc_racial"
void main()
{
//Declare major variables
@@ -39,7 +40,7 @@ void main()
object oArea = GetArea(oTarget);
int nCHP = GetLocalInt(oArea, "nCHP" +sTag);
//Check if the target is an undead
if(GetRacialType(oTarget) == RACIAL_TYPE_UNDEAD)
if(MyPRCGetRacialType(oTarget) == RACIAL_TYPE_UNDEAD)
{
//Fire cast spell at event for the specified target
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, SPELLABILITY_LAY_ON_HANDS));