Updated Release Archive. Fixed Mage-killer prereqs. Removed old LETO & ConvoCC related files. Added organized spell scroll store. Fixed Gloura spellbook. Various TLK fixes. Reorganized Repo. Removed invalid user folders. Added DocGen back in.
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Divine Recovery
|
|
//:: tob_rby_divrcvr.nss
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Up to [turn undead] times per day the character may recover a maneuver as a swift action
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Stratovarius
|
|
//:: Created On: Oct 4, 2008
|
|
//:://////////////////////////////////////////////
|
|
|
|
#include "tob_inc_tobfunc"
|
|
|
|
void main()
|
|
{
|
|
object oPC = OBJECT_SELF;
|
|
if(!GetHasFeat(FEAT_TURN_UNDEAD, oPC))
|
|
SpeakStringByStrRef(40550);
|
|
else
|
|
{
|
|
int nList = GetPrimaryBladeMagicClass(oPC);
|
|
int nLast = GetLocalInt(oPC, "ManeuverExpended" + IntToString(nList));
|
|
int nMove = GetLocalInt(oPC, "ManeuverExpended" + IntToString(nList) + IntToString(nLast));
|
|
FloatingTextStringOnCreature(GetManeuverName(nMove) + " is recovered", oPC, FALSE);
|
|
|
|
DeleteLocalInt(oPC, "ManeuverExpended" + IntToString(nList) + IntToString(nLast));
|
|
SetLocalInt(oPC, "ManeuverExpended" + IntToString(nList), nLast - 1);
|
|
DecrementRemainingFeatUses(oPC, FEAT_TURN_UNDEAD);
|
|
}
|
|
} |