Added the following spells: Regenerate Light Wounds, Regenerate Moderate Wounds, Regenerate Serious Wounds, Regenerate Critical Wounds, Spirit Worm, Tortoise Shell, Speed of the Wind & Spiritual Weapon. Updated Force Missiles & Chasing Perfection. Updated Acid Fog to be more like pen & paper. Updated release archive.
		
			
				
	
	
		
			59 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
|    //::///////////////////////////////////////////////
 | |
| //:: Acid Fog: On Exit
 | |
| //:: NW_S0_AcidFogB.nss
 | |
| //:: Copyright (c) 2001 Bioware Corp.
 | |
| //:://////////////////////////////////////////////
 | |
| /*
 | |
|     All creatures within the AoE take 2d6 acid damage
 | |
|     per round and their movement is halved.
 | |
| 	
 | |
| */
 | |
| //:://////////////////////////////////////////////
 | |
| //:: Created By: Preston Watamaniuk
 | |
| //:: Created On: May 17, 2001
 | |
| //:://////////////////////////////////////////////
 | |
| //:: Update Pass By: Preston W, On: July 20, 2001
 | |
| 
 | |
| 
 | |
| //:: modified by mr_bumpkin Dec 4, 2003
 | |
| #include "prc_inc_spells"
 | |
| 
 | |
| //:: This spell isn't supposed to have a saving throw.
 | |
| //:: modified by Jaysyn: 2024-08-25 14:41:58
 | |
| 
 | |
| void main()
 | |
| {
 | |
|     PRCSetSchool(SPELL_SCHOOL_CONJURATION);
 | |
| 
 | |
|     //Declare major variables
 | |
|     //Get the object that is exiting the AOE
 | |
|     object oTarget = GetExitingObject();
 | |
|     int bValid = FALSE;
 | |
|     effect eAOE;
 | |
|     if(GetHasSpellEffect(SPELL_ACID_FOG, oTarget))
 | |
|     {
 | |
|         //Search through the valid effects on the target.
 | |
|         eAOE = GetFirstEffect(oTarget);
 | |
|         while (GetIsEffectValid(eAOE) && bValid == FALSE)
 | |
|         {
 | |
|             if (GetEffectCreator(eAOE) == GetAreaOfEffectCreator())
 | |
|             {
 | |
|                 if(GetEffectType(eAOE) == EFFECT_TYPE_MOVEMENT_SPEED_DECREASE)
 | |
|                 {
 | |
|                     //If the effect was created by the Acid_Fog then remove it
 | |
|                     if(GetEffectSpellId(eAOE) == SPELL_ACID_FOG)
 | |
|                     {
 | |
|                         RemoveEffect(oTarget, eAOE);
 | |
|                         bValid = TRUE;
 | |
|                     }
 | |
|                 }
 | |
|             }
 | |
|             //Get next effect on the target
 | |
|             eAOE = GetNextEffect(oTarget);
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     PRCSetSchool();
 | |
| }
 | |
| 
 |