Added "removed" folder
This commit is contained in:
52
_removed/x0_s1_petrgaze.nss
Normal file
52
_removed/x0_s1_petrgaze.nss
Normal file
@@ -0,0 +1,52 @@
|
||||
//::///////////////////////////////////////////////////
|
||||
//:: X0_S1_PETRGAZE
|
||||
//:: Petrification gaze monster ability.
|
||||
//:: Fortitude save (DC 15) or be turned to stone permanently.
|
||||
//:: This will be changed to a temporary effect.
|
||||
//:: Copyright (c) 2002 Floodgate Entertainment
|
||||
//:: Created By: Naomi Novik
|
||||
//:: Created On: 11/14/2002
|
||||
//::///////////////////////////////////////////////////
|
||||
//:: Used by Basilisk
|
||||
/*
|
||||
Patch 1.70, fix by Shadoow
|
||||
|
||||
- was missing blinded check
|
||||
*/
|
||||
|
||||
#include "x2_i0_spells"
|
||||
|
||||
void main()
|
||||
{
|
||||
//--------------------------------------------------------------------------
|
||||
// Make sure we are not blind
|
||||
//--------------------------------------------------------------------------
|
||||
if( GZCanNotUseGazeAttackCheck(OBJECT_SELF))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
object oTarget = GetSpellTargetObject();
|
||||
int nHitDice = GetHitDice(OBJECT_SELF);
|
||||
|
||||
|
||||
location lTargetLocation = GetSpellTargetLocation();
|
||||
|
||||
//Get first target in spell area
|
||||
oTarget = GetFirstObjectInShape(SHAPE_SPELLCONE, 11.0, lTargetLocation, TRUE);
|
||||
while(GetIsObjectValid(oTarget))
|
||||
{
|
||||
if(oTarget != OBJECT_SELF && spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, OBJECT_SELF))
|
||||
{
|
||||
int nSpellID = GetSpellId();
|
||||
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, nSpellID));
|
||||
float fDelay = GetDistanceBetween(OBJECT_SELF, oTarget)/20;
|
||||
|
||||
object oSelf = OBJECT_SELF;
|
||||
DelayCommand(fDelay, DoPetrification(nHitDice, oSelf, oTarget, nSpellID, 13));
|
||||
}
|
||||
|
||||
//Get next target in spell area
|
||||
oTarget = GetNextObjectInShape(SHAPE_SPELLCONE, 11.0, lTargetLocation, TRUE);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user