Updated AMS marker feats. Removed arcane & divine marker feats. Updated Dread Necromancer for epic progression. Updated weapon baseitem models. Updated new weapons for crafting & npc equip. Updated prefix. Updated release archive.
35 lines
871 B
Plaintext
35 lines
871 B
Plaintext
//::///////////////////////////////////////////////
|
|
//:: 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"));
|
|
} |