generated from Jaysyn/ModuleTemplate
2025/12/23 Update
Hooked up new GUI module event. Updated PRC8 includes. Full compile.
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
#include "prc_inc_spells"
|
||||
#include "inc_utility"
|
||||
#include "prc_inc_itmrstr"
|
||||
#include "shd_inc_shdfunc"
|
||||
#include "lookup_2da_spell"
|
||||
|
||||
// This function holds all functions that are supposed to run before the actual
|
||||
// spellscript gets run. If this functions returns FALSE, the spell is aborted
|
||||
@@ -132,6 +134,15 @@ int ShadPreMystCastCode()
|
||||
|
||||
int nContinue = !ExecuteScriptAndReturnInt("prespellcode",oShadow);
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Block forsakers from using shadowcasting
|
||||
//---------------------------------------------------------------------------
|
||||
if(GetLevelByClass(CLASS_TYPE_FORSAKER, oShadow) > 0)
|
||||
{
|
||||
SendMessageToPC(oShadow, "Forsakers cannot use the power of shadowcasting.");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Break any spell require maintaining concentration
|
||||
//---------------------------------------------------------------------------
|
||||
@@ -277,4 +288,6 @@ int ShadPreMystCastCode()
|
||||
|
||||
if(DEBUG) DoDebug("ShadPreMystCastCode nContinue #6: " + IntToString(nContinue));
|
||||
return nContinue;
|
||||
}
|
||||
}
|
||||
|
||||
//:: void main (){}
|
||||
|
||||
Reference in New Issue
Block a user