// Generated by jmac7142's KotOR Script Generator 
// Offensive FP 
#include "k_inc_force" 
 
void main()
{ 
    SWFP_DAMAGE_TYPE = DAMAGE_TYPE_FIRE;
 
    object oSource = OBJECT_SELF; 
    object oTarget = GetSpellTargetObject();
    int nDC = 17;

    effect eBeam = EffectBeam(2053, oSource, BODY_NODE_HAND, FALSE);
    effect eVFX = EffectVisualEffect(1039);
    effect eVFX2 = EffectVisualEffect(2062);

    int nDamage = GetHitDice(oSource)*2;
    effect eDamage = EffectDamage(nDamage);

    if(ReflexSave(oTarget, nDC))
    {
     if( GetHasFeat( FEAT_EVASION, oTarget ) ) {
     nDamage /= 4;
     }
     else {
     nDamage /= 3;
     }
     }
     
     ApplyEffectToObject(0, eDamage, oTarget);
     ApplyEffectToObject(1, eBeam, oTarget, 1.0);
     ApplyEffectToObject(1, eVFX, oTarget);
     DelayCommand(0.33, ApplyEffectToObject(1, eVFX2, oTarget, 1.0));


}