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,38 @@
//::///////////////////////////////////////////////
//:: Frostrager - One-Two Punch
//:://////////////////////////////////////////////
/*
This is the spell cast on the Frostrager to apply the effects
*/
//:://////////////////////////////////////////////
//:: Created By: Stratovarius
//:: Created On: Sep 4, 2018
//:://////////////////////////////////////////////
#include "prc_inc_spells"
void main()
{
object oPC = PRCGetSpellTargetObject();
// Removes effects
PRCRemoveEffectsFromSpell(oPC, GetSpellId());
string nMesL = "";
object oWeapRL = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC);
if (GetBaseItemType(oWeapRL) == BASE_ITEM_INVALID) //Unarmed only
{
if(DEBUG) DoDebug("Frostrager One-Two: Right hand weapon is empty");
effect addAttL = SupernaturalEffect( EffectModifyAttacks(1) );
effect attPenL = SupernaturalEffect( EffectAttackDecrease(2) );
effect eLinkL = EffectLinkEffects(addAttL, attPenL);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLinkL, oPC);
nMesL = "One-Two Punch Activated";
}
else
{
nMesL = "*Invalid Weapon. Ability Not Activated!*";
}
FloatingTextStringOnCreature(nMesL, oPC, FALSE);
}