Code: Select all
{
name = name.."-electric-cloud-"..level,
type = "smoke-with-trigger",
flags = {"not-on-map"},
show_when_smoke_off = true,
particle_count = 2,
render_layer = "explosion",
affected_by_wind = false,
duration = 120,
cyclic=true,
animation = Sprites.empty_picture(),
action =
{
type = "direct",
action_delivery =
{
type = "instant",
target_effects =
{
type = "nested-result",
action =
{
type = "area",
radius = 5,
force = 'enemy',
action_delivery =
{
type = "instant",
target_effects =
{
type = "damage",
damage = { amount = 50, = "electric"}
}
}
}
}
}
},
action_cooldown = 15
},