PRC8/nwn/nwnprc/trunk/newspellbook/tob_tgcw_hntsns.nss
Jaysyn904 5b44c74206 20025/05/27 Late Update
Expanded Disciple of Mephistopheles for epic progression.
Expanded Disciple of Soul Eater for epic progression.
Crusader's Aura of Triumph has a range of Touch.
Swordsage's Pearl of Black Doubt may actually increase AC now.
Crusader's Steely Resolve should start back up after logging back into MP.
Hopefully Desert Wind strikes will no longer burn the wielder when using Flame Weapon.
Keen Senses should go away when leaving Hunter's Senses stance.
Moment of Prescience should be calculating bonuses correctly.
2025-05-27 22:29:19 -04:00

78 lines
2.3 KiB
Plaintext

/*
----------------
Hunter's Sense
tob_tgcw_hntsns.nss
----------------
27/04/07 by Stratovarius
*/ /** @file
Hunter's Sense
Tiger Claw (Stance)
Level: Swordsage 1, Warblade 1
Initiation Action: 1 Swift Action
Range: Personal.
Target: You.
Duration: Stance.
You sniff at the air like a hunting animal. After you focus your mind,
an array of scents that normally eludes your awareness becomes clear to you.
You gain the scent ability.
*/
#include "tob_inc_move"
#include "tob_movehook"
//#include "prc_alterations"
void main()
{
if (!PreManeuverCastCode())
{
// If code within the PreManeuverCastCode (i.e. UMD) reports FALSE, do not run this spell
return;
}
// End of Spell Cast Hook
object oInitiator = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
object oSkin = GetPCSkin(oInitiator);
struct maneuver move = EvaluateManeuver(oInitiator, oTarget);
if(move.bCanManeuver)
{
// What we use to replace scent
effect eScent;
eScent = EffectLinkEffects(EffectSkillIncrease(SKILL_SPOT, 4), EffectSkillIncrease(SKILL_LISTEN, 4));
eScent = EffectLinkEffects(eScent, EffectSkillIncrease(SKILL_SEARCH, 4));
eScent = EffectLinkEffects(eScent, EffectVisualEffect(VFX_DUR_FREEDOM_MOVEMENT));
eScent = EffectLinkEffects(eScent, EffectBonusFeat(FEAT_KEEN_SENSE));
if (GetHasDefensiveStance(oInitiator, DISCIPLINE_TIGER_CLAW))
{
eScent = EffectLinkEffects(eScent, EffectSavingThrowIncrease(SAVING_THROW_ALL, 2, SAVING_THROW_TYPE_ALL));
}
if (GetLevelByClass(CLASS_TYPE_BLOODCLAW_MASTER, oInitiator) >= 2)
{
eScent = EffectLinkEffects(eScent, EffectMovementSpeedIncrease(33));
eScent = EffectLinkEffects(eScent, EffectACIncrease(1));
}
if (GetLocalInt(oInitiator, "TigerFangSharpClaw"))
{
eScent = EffectLinkEffects(eScent, EffectDamageIncrease(DAMAGE_BONUS_1, DAMAGE_TYPE_BASE_WEAPON));
}
eScent = ExtraordinaryEffect(eScent);
SPApplyEffectToObject(DURATION_TYPE_PERMANENT, eScent, oTarget);
//:: This wasn't going away when changing stances.
//IPSafeAddItemProperty(oSkin, ItemPropertyBonusFeat(IP_CONST_FEAT_KEEN_SENSES), 0.0f, X2_IP_ADDPROP_POLICY_KEEP_EXISTING, FALSE, FALSE);
}
}