Update for PRC 4.1.10a 2023/02/20

Update for PRC 4.1.10a 2023/02/20

+ Jaysyn's latest PnP changes.
This commit is contained in:
Jaysyn904
2023-02-20 19:23:13 -05:00
parent 6c305aecc5
commit 6a6a8d56ac
42 changed files with 3670 additions and 2577 deletions

View File

@@ -50,7 +50,8 @@ void main()
object oSelf = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
int nHitDice = PRCGetCasterLevel(oSelf);
int nSpellID = PRCGetSpellId();
int nSpellID = PRCGetSpellId();
effect eImmune = EffectVisualEffect(VFX_IMP_MAGIC_RESISTANCE_USE);
//--------------------------------------------------------------------------
// Loop through all available targets in spellcone
@@ -77,7 +78,19 @@ void main()
if (spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, oSelf) && oTarget != oSelf)
{
DelayCommand(fDelay, PRCDoPetrification(nHitDice, oSelf, oTarget, nSpellID, nDC));
//:: Check for Immunity to Petrification
int bImmune = GetHasFeat(FEAT_IMMUNE_PETRIFICATION, oTarget);
if (bImmune)
{
SendMessageToPC(OBJECT_SELF, "This creatrure is immune to petrification");
ApplyEffectToObject(DURATION_TYPE_INSTANT, eImmune, oTarget);
return;
}
else
{
DelayCommand(fDelay, PRCDoPetrification(nHitDice, oSelf, oTarget, nSpellID, nDC));
}
//Get next target in spell area
}
oTarget = GetNextObjectInShape(SHAPE_SPELLCONE, 10.0, lFinalTarget, TRUE);