forked from Jaysyn/PRC8
57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
|
/*
|
||
|
----------------
|
||
|
Transform the Landscape, Exit
|
||
|
|
||
|
true_utr_trnlndb
|
||
|
----------------
|
||
|
|
||
|
2/9/06 by Stratovarius
|
||
|
*/ /** @file
|
||
|
|
||
|
Transform the Landscape
|
||
|
|
||
|
Level: Perfected Map 2
|
||
|
Range: 100 feet
|
||
|
Area: 20' Radius
|
||
|
Duration: 1 Minute
|
||
|
Spell Resistance: No
|
||
|
Save: None
|
||
|
Metautterances: Extend
|
||
|
|
||
|
You cause the grouns to crack and split beneath your enemies' feet, impeding their progress.
|
||
|
All enemies in the area are affected by difficult terrain (50% movement speed reduction).
|
||
|
*/
|
||
|
|
||
|
#include "true_inc_trufunc"
|
||
|
#include "true_utterhook"
|
||
|
//#include "prc_alterations"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
//Declare major variables
|
||
|
//Get the object that is exiting the AOE
|
||
|
object oTarget = GetExitingObject();
|
||
|
int bValid = FALSE;
|
||
|
effect eAOE;
|
||
|
if(GetHasSpellEffect(UTTER_TRANSFORM_LANDSCAPE, oTarget))
|
||
|
{
|
||
|
//Search through the valid effects on the target.
|
||
|
eAOE = GetFirstEffect(oTarget);
|
||
|
while (GetIsEffectValid(eAOE) && bValid == FALSE)
|
||
|
{
|
||
|
if (GetEffectCreator(eAOE) == GetAreaOfEffectCreator())
|
||
|
{
|
||
|
//If the effect was created by either half of Fog from the Void
|
||
|
if(GetEffectSpellId(eAOE) == UTTER_TRANSFORM_LANDSCAPE)
|
||
|
{
|
||
|
RemoveEffect(oTarget, eAOE);
|
||
|
bValid = TRUE;
|
||
|
}
|
||
|
}
|
||
|
//Get next effect on the target
|
||
|
eAOE = GetNextEffect(oTarget);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|