Initial upload.

Adding base PRC 4.19a files to repository.
This commit is contained in:
Jaysyn904
2022-10-07 13:51:24 -04:00
parent 646eb01834
commit 1662218bb4
22441 changed files with 1274376 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
//::///////////////////////////////////////////////
//:: Jade Water Damage 2
//:: ravage_jade_wtr2
//:://////////////////////////////////////////////
/*
1d4 Int damage and 1d4 Wis damage
*/
//:://////////////////////////////////////////////
//:: Created By: Ornedan
//:: Created On: 10.01.2005
//:://////////////////////////////////////////////
#include "prc_inc_spells"
#include "inc_ravage"
void main()
{
object oTarget = OBJECT_SELF;
// Ravages only affect evil creatures
if (GetAlignmentGoodEvil(oTarget)!=ALIGNMENT_EVIL) return;
int nExtra = GetRavageExtraDamage(oTarget);
effect eVis = GetRavageVFX();
ApplyAbilityDamage(oTarget, ABILITY_WISDOM, d4(1) + nExtra, DURATION_TYPE_PERMANENT, TRUE);
ApplyAbilityDamage(oTarget, ABILITY_INTELLIGENCE, d4(1) + nExtra, DURATION_TYPE_PERMANENT, TRUE);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
}