PRC8_fork/trunk/scripts/prc_abjcha_abdmg.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

22 lines
724 B
Plaintext

#include "prc_inc_burn"
void main()
{
object oPC = OBJECT_SELF;
if(!TakeSwiftAction(oPC)) return;
int nBurn = BurnSpell(oPC);
int nRounds = 1; //Arcane Boost is a one round effect
if(!nBurn)
{
//FloatingTextStringOnCreature("You do not have a spell of that level to burn", oPC, FALSE);
return;
}
nBurn = nBurn * 2;
effect eLink = EffectLinkEffects(EffectDamageIncrease(nBurn, DAMAGE_TYPE_MAGICAL), EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE));
eLink = SupernaturalEffect(eLink);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oPC, RoundsToSeconds(nRounds));
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_HEAD_ODD), oPC);
}