PRC8/nwn/nwnprc/trunk/newspellbook/tob_dpst_drgtth.nss
Jaysyn904 8a034b0da0 2025/05/25 Update
Updated all ToB maneuvers with saves to respect Blade Meditation.
Added HasBladeMeditationForDiscipline()
Expanded Witchborn Binder for epic progression.
Fixed a few bugs around Vile Martial strike.
Echo Spell shouldn't target self or items.
Muckdweller should have a -6 STR.
Added new Vile Martial feats to GetVileFeats().
Grappling something now removes invisibility.
Started on Power Attack NUI.
Starmantle shouldn't stack.
Factotum & Shadow Thief of Amn require UMD checks for scroll casting.
2025-05-25 16:16:36 -04:00

45 lines
1.2 KiB
Plaintext

/*
----------------
Dragon's Tooth
tob_dpst_drgtth
----------------
27/01/08 by Stratovarius
*/ /** @file
Dragon's Tooth
Deepstone Sentinel level 4
You cause a pillar of earth to erupt, tossing foes to the ground.
You cause a 10 foot tall pillar of stone to appear, tossing enemies to the ground.
*/
#include "tob_inc_move"
#include "prc_inc_spells"
void main()
{
object oInitiator = OBJECT_SELF;
object oCreature = CreateObject(OBJECT_TYPE_PLACEABLE, "tob_dpst_pillar", PRCGetSpellTargetLocation());
object oProneTarget = MyFirstObjectInShape(SHAPE_SPHERE, FeetToMeters(10.0), GetLocation(oInitiator));
while(GetIsObjectValid(oProneTarget))
{
int nDC = 10 + GetHitDice(oInitiator)/2 + GetAbilityModifier(ABILITY_STRENGTH, oInitiator);
int nBladeMed = HasBladeMeditationForDiscipline(oInitiator, GetDisciplineByManeuver(PRCGetSpellId()));
if (nBladeMed)
{
nDC += 1;
}
// Save check
if (!PRCMySavingThrow(SAVING_THROW_WILL, oProneTarget, nDC))
{
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, ExtraordinaryEffect(EffectKnockdown()), oProneTarget, 6.0);
}
oProneTarget = MyNextObjectInShape(SHAPE_SPHERE, FeetToMeters(10.0), GetLocation(oInitiator));
}
}