PRC8/nwn/nwnprc/trunk/psionics/psi_spdfthgt_oeq.nss
Jaysyn904 d87fe14826 Further file organization
Further file organization
2023-08-23 22:11:00 -04:00

22 lines
681 B
Plaintext

//::///////////////////////////////////////////////
//:: Speed of Thought onequip script
//:: psi_spdfthgt_oeq
//:://////////////////////////////////////////////
/** @file
Removes the Speed of Thought bonus if
equipper equipped heavy armor.
*/
//:://////////////////////////////////////////////
//:: Created By: Ornedan
//:: Created On: 23.03.2005
//:: Modified On: 11.07.2005
//:://////////////////////////////////////////////
#include "psi_inc_psifunc"
void main()
{
object oCreature = GetItemLastEquippedBy();
if(GetBaseAC(GetItemInSlot(INVENTORY_SLOT_CHEST, oCreature)) >= 6)
PRCRemoveSpellEffects(SPELL_FEAT_SPEED_OF_THOUGHT_BONUS, oCreature, oCreature);
}