Updated TF Shadowlord's prereq 2da. Fixed CW Samurai's TWF levelup issue. Added CW Samurai's skill 2DA back in. Cleaned up ECL 2DA. Fixed prereq bug with Imp Crit Eagle Claw. Added Ability Focus feats for all Shapes, Essences & Invocations with DCs. Fixed bug with 6th slot of crafting spells prereqs. Added Reth Dekala HD to Initiator total. Removed Dark Sun race files. Updated all racial outsiders, monstrous humanoids, aberrations, giants, humanoids and fey to have the correct weapon & armor profs.
		
			
				
	
	
		
			63 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| //::///////////////////////////////////////////////
 | |
| //:: Wall of Fire: On Enter
 | |
| //:: NW_S0_WallFireA.nss
 | |
| //:: Copyright (c) 2001 Bioware Corp.
 | |
| //:://////////////////////////////////////////////
 | |
| /*
 | |
|     Person within the AoE take 4d6 + caster lvl (max +20)
 | |
|     fire/magical damage per round.
 | |
| */
 | |
| //:://////////////////////////////////////////////
 | |
| //:: Created By: Preston Watamaniuk
 | |
| //:: Created On: May 17, 2001
 | |
| //:://////////////////////////////////////////////
 | |
| 
 | |
| //:: modified by mr_bumpkin  Dec 4, 2003
 | |
| #include "prc_inc_spells"
 | |
| 
 | |
| #include "inv_inc_invfunc"
 | |
| 
 | |
| void main()
 | |
| {
 | |
|     SetAllAoEInts(INVOKE_VFX_PER_WALLPERILFIRE,OBJECT_SELF, GetSpellSaveDC());
 | |
| 
 | |
|     //Declare major variables
 | |
|     int nDamage;
 | |
|     object oCaster = GetAreaOfEffectCreator();
 | |
|     int nCasterLvl = GetInvokerLevel(oCaster, CLASS_TYPE_WARLOCK);
 | |
|     int nPenetr = SPGetPenetrAOE(oCaster, nCasterLvl);
 | |
|     //Declare and assign personal impact visual effect.
 | |
|     effect eVis = EffectVisualEffect(VFX_IMP_FLAME_M);
 | |
| 
 | |
|     //cap the extra damage
 | |
|     nCasterLvl = PRCMin(nCasterLvl, 20);
 | |
| 
 | |
|     object oTarget = GetEnteringObject();
 | |
|     if (spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, oCaster))
 | |
|     {
 | |
|         //Fire cast spell at event for the specified target
 | |
|         SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, INVOKE_WALL_OF_PERILOUS_FLAME));
 | |
|         //Make SR check, and appropriate saving throw(s).
 | |
|         if(!PRCDoResistSpell(oCaster, oTarget, nPenetr))
 | |
|         {
 | |
|             //Roll damage.
 | |
|             nDamage = d6(4) + nCasterLvl;
 | |
|             //nDamage += ApplySpellBetrayalStrikeDamage(oTarget, OBJECT_SELF, FALSE);
 | |
|             int nDC = GetInvocationSaveDC(oTarget, oCaster, INVOKE_WALL_OF_PERILOUS_FLAME);
 | |
| 			
 | |
| 			if (GetHasFeat(FEAT_ABFOC_WALL_OF_PERILOUS_FLAME, oCaster)) nDC += 2;
 | |
| 			
 | |
|             nDamage = PRCGetReflexAdjustedDamage(nDamage, oTarget, nDC, SAVING_THROW_TYPE_FIRE);
 | |
| 
 | |
|             if(nDamage > 0)
 | |
|             {
 | |
|                 // Apply effects to the currently selected target.
 | |
|                 ApplyEffectToObject(DURATION_TYPE_INSTANT, PRCEffectDamage(oTarget, nDamage/2, DAMAGE_TYPE_FIRE), oTarget);
 | |
|                 ApplyEffectToObject(DURATION_TYPE_INSTANT, PRCEffectDamage(oTarget, nDamage/2, DAMAGE_TYPE_MAGICAL), oTarget);
 | |
|                 ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
 | |
|                 //PRCBonusDamage(oTarget);
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| }
 |