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

@@ -13,6 +13,16 @@ void main()
{
object oTarget = PRCGetSpellTargetObject();
int nHitDice = GetHitDice(oTarget);
effect eImmune = EffectVisualEffect(VFX_IMP_MAGIC_RESISTANCE_USE);
//:: 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;
}
PRCDoPetrification(nHitDice, OBJECT_SELF, oTarget, GetSpellId(), 15);
}