2025/12/05 Update
Fixed overlong hak name (abilities -> ability). Updated PEPS Updated NWNxEE libraries. Updated readme Updated nim tools.
This commit is contained in:
@@ -292,16 +292,16 @@ int NWNX_Object_GetIsDestroyable(object oObject);
|
||||
/// @brief Checks for specific spell immunity. Should only be called in spellscripts
|
||||
/// @param oDefender The object defending against the spell.
|
||||
/// @param oCaster The object casting the spell.
|
||||
/// @param nSpellId The casted spell id. Default value is -1, which corrresponds to the normal game behaviour.
|
||||
/// @param nSpellId The casted spell id. Default value is -1, which corresponds to the normal game behaviour.
|
||||
/// @return -1 if defender has no immunity, 2 if the defender is immune
|
||||
int NWNX_Object_DoSpellImmunity(object oDefender, object oCaster, int nSpellId=-1);
|
||||
|
||||
/// @brief Checks for spell school/level immunities and mantles. Should only be called in spellscripts
|
||||
/// @param oDefender The object defending against the spell.
|
||||
/// @param oCaster The object casting the spell.
|
||||
/// @param nSpellId The casted spell id. Default value is -1, which corrresponds to the normal game behaviour.
|
||||
/// @param nSpellLevel The level of the casted spell. Default value is -1, which corrresponds to the normal game behaviour.
|
||||
/// @param nSpellSchool The school of the casted spell (SPELL_SCHOOL_* constant). Default value is -1, which corrresponds to the normal game behaviour.
|
||||
/// @param nSpellId The casted spell id. Default value is -1, which corresponds to the normal game behaviour.
|
||||
/// @param nSpellLevel The level of the casted spell. Default value is -1, which corresponds to the normal game behaviour.
|
||||
/// @param nSpellSchool The school of the casted spell (SPELL_SCHOOL_* constant). Default value is -1, which corresponds to the normal game behaviour.
|
||||
/// @return -1 defender no immunity. 2 if immune. 3 if immune, but the immunity has a limit (example: mantles)
|
||||
int NWNX_Object_DoSpellLevelAbsorption(object oDefender, object oCaster, int nSpellId=-1, int nSpellLevel=-1, int nSpellSchool=-1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user