Updated to PRC8. Further function integration. Fixed NPC onDeath script. Full compile. Updated release archive.
		
			
				
	
	
		
			20 lines
		
	
	
		
			577 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			577 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| #include "prc_inc_spells"
 | |
| #include "spinc_burst"
 | |
| 
 | |
| void main()
 | |
| {
 | |
| 	// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
 | |
| 	if (!X2PreSpellCastCode()) return;
 | |
|     
 | |
| 	// Get the damage dice.
 | |
| 	int nCasterLvl = PRCGetCasterLevel(OBJECT_SELF);
 | |
| 	
 | |
| 	int nDice = (nCasterLvl + 1) / 2;
 | |
| 	if (nDice > 20) nDice = 20;
 | |
| 
 | |
| 	// Ice burst is a colossal radius burst doing 1d4+10/level (cap at 10) cold damage.
 | |
| 	DoBurst (nCasterLvl,6, 0, nDice, 
 | |
| 		VFX_IMP_FROST_L, VFX_IMP_FROST_S, 
 | |
| 		RADIUS_SIZE_MEDIUM, DAMAGE_TYPE_COLD, DAMAGE_TYPE_COLD, SAVING_THROW_TYPE_COLD);
 | |
| }
 |