mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 04:27:15 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
23
trunk/scripts/prc_dom_sun.nss
Normal file
23
trunk/scripts/prc_dom_sun.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "inc_newspellbook"
|
||||
#include "prc_inc_domain"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = OBJECT_SELF;
|
||||
|
||||
// Used by the uses per day check code for bonus domains
|
||||
if(!DecrementDomainUses(PRC_DOMAIN_SUN, oPC)) return;
|
||||
|
||||
// Mystics with sun domain can turn undead, but can't use greater turning
|
||||
int bMystic = GetLevelByClass(CLASS_TYPE_MYSTIC, oPC) && GetHasFeat(FEAT_BONUS_DOMAIN_SUN, oPC);
|
||||
|
||||
if(bMystic)
|
||||
{
|
||||
if(!GetHasFeat(FEAT_TURN_UNDEAD, oPC))
|
||||
return;
|
||||
}
|
||||
else ActionDoCommand(SetLocalInt(oPC, "UsingSunDomain", TRUE));
|
||||
ActionCastSpell(SPELLABILITY_TURN_UNDEAD);
|
||||
ActionDoCommand(DecrementRemainingFeatUses(oPC, FEAT_TURN_UNDEAD));
|
||||
ActionDoCommand(DeleteLocalInt(oPC, "UsingSunDomain"));
|
||||
}
|
||||
Reference in New Issue
Block a user