22 lines
551 B
Plaintext
22 lines
551 B
Plaintext
void main()
|
|
{
|
|
effect eAcid;
|
|
effect eVis = EffectVisualEffect(VFX_IMP_FROST_S);
|
|
|
|
object oCaster = GetAreaOfEffectCreator();
|
|
|
|
object oTarget = GetFirstInPersistentObject();
|
|
|
|
while ( GetIsObjectValid(oTarget ) )
|
|
{
|
|
if ( GetIsEnemy(oTarget,oCaster) )
|
|
{
|
|
eAcid = EffectDamage(d6(2),DAMAGE_TYPE_COLD);
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT,eAcid,oTarget);
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT,eVis,oTarget);
|
|
}
|
|
oTarget = GetNextInPersistentObject();
|
|
}
|
|
}
|