Further file organization

Further file organization
This commit is contained in:
Jaysyn904
2023-08-23 22:11:00 -04:00
parent 3062876237
commit d87fe14826
22364 changed files with 0 additions and 3253 deletions

View File

@@ -0,0 +1,35 @@
//::///////////////////////////////////////////////
//:: Discipline of the Sun
//:: ft_disc_sun.nss
//:://////////////////////////////////////////////
/*
Type of Feat: Divine.
Prerequisite: Turn Undead, Good Alignment.
Specifics: You spend two turn attempts when
you turn undead, to destroy the Undead instead
of turning them.
Use: Selected.
*/
//:://////////////////////////////////////////////
#include "prc_inc_spells"
void main()
{
object oPC = OBJECT_SELF;
if(GetAlignmentGoodEvil(oPC) != ALIGNMENT_GOOD)
return;
if(!CheckTurnUndeadUses(oPC, 2))
{
SpeakStringByStrRef(40550);
return;
}
ActionDoCommand(SetLocalInt(oPC, "UsingSunDomain", TRUE));
ActionCastSpellAtObject(SPELLABILITY_TURN_UNDEAD, oPC, METAMAGIC_ANY, TRUE);
ActionDoCommand(DeleteLocalInt(oPC, "UsingSunDomain"));
}