Further file organization

Further file organization
This commit is contained in:
Jaysyn904
2023-08-23 22:11:00 -04:00
parent 3062876237
commit d87fe14826
22364 changed files with 0 additions and 3253 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);
}