Updated AMS marker feats. Removed arcane & divine marker feats. Updated Dread Necromancer for epic progression. Updated weapon baseitem models. Updated new weapons for crafting & npc equip. Updated prefix. Updated release archive.
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| //::///////////////////////////////////////////////
 | |
| //:: Magic Cirle Against Good
 | |
| //:: NW_S0_CircGoodB
 | |
| //:: Copyright (c) 2001 Bioware Corp.
 | |
| //:://////////////////////////////////////////////
 | |
| /*
 | |
|     Add basic protection from good effects to
 | |
|     entering allies.
 | |
| */
 | |
| //:://////////////////////////////////////////////
 | |
| //:: Created By: Preston Watamaniuk
 | |
| //:: Created On: Nov 20, 2001
 | |
| //:://////////////////////////////////////////////
 | |
| #include "prc_inc_spells"
 | |
| 
 | |
| void main()
 | |
| {
 | |
|     PRCSetSchool(SPELL_SCHOOL_ABJURATION);
 | |
| 
 | |
|     //Get the object that is exiting the AOE
 | |
|     object oTarget = GetExitingObject();
 | |
| 
 | |
|     if(GetHasSpellEffect(SPELL_MAGIC_CIRCLE_AGAINST_CHAOS, oTarget))
 | |
|     {
 | |
|         int bValid = FALSE;
 | |
|         //Search through the valid effects on the target.
 | |
|         effect eAOE = GetFirstEffect(oTarget);
 | |
|         while(GetIsEffectValid(eAOE) && !bValid)
 | |
|         {
 | |
|             if(GetEffectCreator(eAOE) == GetAreaOfEffectCreator()
 | |
|             && GetEffectSpellId(eAOE) == SPELL_MAGIC_CIRCLE_AGAINST_CHAOS
 | |
|             && GetEffectType(eAOE) != EFFECT_TYPE_AREA_OF_EFFECT)
 | |
|             {
 | |
|                 RemoveEffect(oTarget, eAOE);
 | |
|                 bValid = TRUE;
 | |
|             }
 | |
|             //Get next effect on the target
 | |
|             eAOE = GetNextEffect(oTarget);
 | |
|         }
 | |
|     }
 | |
|     PRCSetSchool();
 | |
| } |