Files
PRC8/nwn/nwnprc/trunk/psionics/psi_def_manifest.nss
Jaysyn904 3fb5d61772 2025/12/31 Update
Happy New Year!
Added Defensive Manifestation for psionics users.
Removed Talent from Grapple Combat Ability so AI wouldn't use it.
Charnel Touch is unlimited uses & shouldn't cause an AoO.
Switched Rain of Fire to use PRCEffectDamage().
Fixed issue where initiator couldn't take a maneuver in a 2nd sword magic class when having the prereq manuevers from a previous sword magic class.
Set Archetypal Form on Sphere of Ultimate Destruction.
Set Archetypal Form on Black Blade of Disaster.
Added missing immunities to Blighter's Undead WIldshape.
Removed incorrect prereq from Claw at the Moon's TLK entry.
Fixed pluralized Undead Wildshapes.
NPC death always cleans up a grapple.
2025-12-31 22:09:21 -05:00

49 lines
1.6 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Defensive Manifestation
//:: psi_def_manifest
//::///////////////////////////////////////////////
#include "prc_alterations"
#include "prc_feat_const"
#include "psi_inc_psifunc"
void main()
{
object oPC = OBJECT_SELF;
// Check if already active
int bActive = GetLocalInt(oPC, "PRC_DefensiveManifestActive");
if(!bActive)
{
// Activate defensive manifestation (no focus limit check needed)
SetLocalInt(oPC, "PRC_DefensiveManifestActive", TRUE);
// Apply temporary Epic Improved Combat Casting with unique tag
effect eBonusFeat = EffectBonusFeat(FEAT_EPIC_IMPROVED_COMBAT_CASTING);
eBonusFeat = UnyieldingEffect(eBonusFeat);
eBonusFeat = TagEffect(eBonusFeat, "DEFENSIVE_MANIFESTATION_BUFF");
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eBonusFeat, oPC);
FloatingTextStringOnCreature("Defensive Manifestation Activated", oPC, FALSE);
}
else
{
// Deactivate defensive manifestation
DeleteLocalInt(oPC, "PRC_DefensiveManifestActive");
// Remove the bonus feat effect by tag
effect eTest = GetFirstEffect(oPC);
while(GetIsEffectValid(eTest))
{
if(GetEffectTag(eTest) == "DEFENSIVE_MANIFESTATION_BUFF")
{
RemoveEffect(oPC, eTest);
break;
}
eTest = GetNextEffect(oPC);
}
FloatingTextStringOnCreature("Defensive Manifestation Deactivated", oPC, FALSE);
}
}