Ancordia_PRC8/_module/nss/bs_onhit.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

28 lines
1.2 KiB
Plaintext

#include "prc_inc_spells"
void main()
{
object oPC = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
if (GetObjectType(oTarget) != OBJECT_TYPE_CREATURE) return;
int nVulnerability = 10;
effect eVul1 = EffectDamageImmunityDecrease(DAMAGE_TYPE_ACID, nVulnerability);
effect eVul2 = EffectDamageImmunityDecrease(DAMAGE_TYPE_FIRE, nVulnerability);
effect eVul3 = EffectDamageImmunityDecrease(DAMAGE_TYPE_COLD, nVulnerability);
effect eVul4 = EffectDamageImmunityDecrease(DAMAGE_TYPE_ELECTRICAL, nVulnerability);
effect eVul5 = EffectDamageImmunityDecrease(DAMAGE_TYPE_MAGICAL, nVulnerability);
effect eVul6 = EffectDamageImmunityDecrease(DAMAGE_TYPE_SONIC, nVulnerability);
effect eVul7 = EffectDamageImmunityDecrease(DAMAGE_TYPE_DIVINE, nVulnerability);
effect eLink = EffectLinkEffects(eVul1, eVul2);
eLink = EffectLinkEffects(eLink, eVul3);
eLink = EffectLinkEffects(eLink, eVul4);
eLink = EffectLinkEffects(eLink, eVul5);
eLink = EffectLinkEffects(eLink, eVul6);
eLink = EffectLinkEffects(eLink, eVul7);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, 30.0);
}