26 lines
1.4 KiB
Plaintext
26 lines
1.4 KiB
Plaintext
void main()
|
|
{
|
|
if(!GetLocalInt(OBJECT_SELF, "Activated"))
|
|
{
|
|
if(GetTag(OBJECT_SELF) == "ba2_genpadage")
|
|
{
|
|
object oPlace = GetObjectByTag("ba2_podecfie");
|
|
AssignCommand(oPlace, ActionCastSpellAtObject(SPELL_BLADE_BARRIER, OBJECT_SELF, METAMAGIC_EMPOWER, TRUE, 40, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
|
|
AssignCommand(oPlace, ActionCastSpellAtObject(SPELL_BLADE_BARRIER, OBJECT_SELF, METAMAGIC_EMPOWER, TRUE, 40, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
|
|
AssignCommand(oPlace, ActionCastSpellAtObject(SPELL_BLADE_BARRIER, OBJECT_SELF, METAMAGIC_EMPOWER, TRUE, 40, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
|
|
AssignCommand(oPlace, ActionCastSpellAtObject(SPELL_BLADE_BARRIER, OBJECT_SELF, METAMAGIC_EMPOWER, TRUE, 40, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
|
|
AssignCommand(oPlace, ActionCastSpellAtObject(SPELL_BLADE_BARRIER, OBJECT_SELF, METAMAGIC_EMPOWER, TRUE, 40, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
|
|
SetLocalInt(OBJECT_SELF, "Activated", TRUE);
|
|
DelayCommand(200.0, SetLocalInt(OBJECT_SELF, "Activated", FALSE));
|
|
}
|
|
else
|
|
{
|
|
int iPlace = Random(5);
|
|
object oPlace = GetNearestObjectByTag("ba2_podecfi", OBJECT_SELF, iPlace);
|
|
AssignCommand(oPlace, ActionCastSpellAtObject(SPELL_BLADE_BARRIER, OBJECT_SELF, METAMAGIC_EMPOWER, TRUE, 40, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
|
|
SetLocalInt(OBJECT_SELF, "Activated", TRUE);
|
|
DelayCommand(200.0, SetLocalInt(OBJECT_SELF, "Activated", FALSE));
|
|
}
|
|
}
|
|
}
|