1
0
mirror of https://github.com/LDDestroier/CC/ synced 2024-11-10 03:49:59 +00:00
ldd-CC/CCBN/ccbn-data/chipdata/shockwave

30 lines
699 B
Plaintext
Raw Normal View History

2019-03-13 04:15:41 +00:00
local stage, players, objects, projectiles, act, images = ...
return {
info = {
name = "ShockWave",
description = "Piercing ground wave!",
cooldown = {
shoot = 14,
move = 8
}
},
logic = function(info)
if info.frame == 0 then
info.x = info.x + info.direction / 2
end
info.x = info.x + (3 / stage.panelWidth) * info.direction
act.stage.setDamage(info.x, info.y, 60, info.owner, 10, false, {}, info.safeObjects)
local struckObject = act.object.checkObjectAtPos(info.x, info.y)
if struckObject then
info.safeObjects[struckObject] = true
end
if info.frame > 50 or not act.stage.checkIfSolid(info.x, info.y) then
return false
else
return true
end
end
}