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

@@ -3,6 +3,7 @@
//Created by: 69MEH69
#include "nw_i0_generic"
#include "prc_inc_racial"
void main()
{
@@ -16,7 +17,7 @@ void main()
int nCurrent = GetCurrentHitPoints(oTarget);
int nBase = GetMaxHitPoints(oTarget);
if(GetRacialType(oTarget) == RACIAL_TYPE_UNDEAD)
if(MyPRCGetRacialType(oTarget) == RACIAL_TYPE_UNDEAD)
{
if(nCurrent < nBase && !GetIsDead(oTarget))
{
@@ -28,7 +29,7 @@ void main()
}
}
}
else if(GetRacialType(oTarget) != RACIAL_TYPE_UNDEAD)
else if(MyPRCGetRacialType(oTarget) != RACIAL_TYPE_UNDEAD)
{
if(nCurrent < nBase && !GetIsDead(oTarget))
{