13 lines
402 B
Plaintext
13 lines
402 B
Plaintext
|
void main()
|
||
|
{
|
||
|
if (GetLocalInt(OBJECT_SELF,"nDoors")!=2)
|
||
|
|
||
|
{
|
||
|
object oDoor=GetObjectByTag("jw_ashdoor1");
|
||
|
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectDamage(10,DAMAGE_TYPE_MAGICAL,DAMAGE_POWER_PLUS_FIVE),oDoor);
|
||
|
oDoor=GetObjectByTag("jw_ashdoor2");
|
||
|
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectDamage(10,DAMAGE_TYPE_MAGICAL,DAMAGE_POWER_PLUS_FIVE),oDoor);
|
||
|
SetLocalInt(OBJECT_SELF,"nDoors",2);
|
||
|
}
|
||
|
}
|