PRC8/nwn/nwnprc/trunk/newspellbook/tob_tgcw_hntsns.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
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.
2024-02-11 14:01:05 -05:00

65 lines
2.1 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 = EffectLinkEffects(EffectSkillIncrease(SKILL_SPOT, 4), EffectSkillIncrease(SKILL_LISTEN, 4));
eScent = EffectLinkEffects(eScent, EffectSkillIncrease(SKILL_SEARCH, 4));
eScent = EffectLinkEffects(eScent, EffectVisualEffect(VFX_DUR_FREEDOM_MOVEMENT));
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);
IPSafeAddItemProperty(oSkin, ItemPropertyBonusFeat(IP_CONST_FEAT_KEEN_SENSES), 0.0f, X2_IP_ADDPROP_POLICY_KEEP_EXISTING, FALSE, FALSE);
}
}