PRC8/trunk/scripts/ravage_prfdctlv1.nss

27 lines
769 B
Plaintext
Raw Normal View History

//::///////////////////////////////////////////////
//:: Purified Couatl Venom Damage 1
//:: ravage_prfdctlv1
//:://////////////////////////////////////////////
/*
2d4 Str 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_STRENGTH, d4(2) + nExtra, DURATION_TYPE_PERMANENT, TRUE);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
}