Code: Select all
defineSpell{
name = "flame_wind",
uiName = "Flame Wind",
skill = "fire_magic",
level = 0,
runes = "ABC",
manaCost = 45,
onCast = function(caster, x, y, direction, skill)
party:playScreenEffect("fireball_screen")
for i = x-1,x+1 do
for j = y-1,y-1 do
spawn("fireburst",party.level,i,j,direction)
end
end
for i = x-1,x+1 do
for j = y+1,y+1 do
spawn("fireburst",party.level,i,j,direction)
end
end
for i = x-2,x+2 do
for j = y-2,y-2 do
spawn("fireburst",party.level,i,j,direction)
end
end
for i = x-2,x+2 do
for j = y+2,y+2 do
spawn("fireburst",party.level,i,j,direction)
end
end
for i = x-2,x+2 do
for j = y-1,y+1 do
spawn("fireburst",party.level,i,j,direction)
end
end
spawn("fireburst",party.level,x-2,y,direction)
spawn("fireburst",party.level,x+2,y,direction)
spawn("fireburst",party.level,x-1,y,direction)
spawn("fireburst",party.level,x+1,y,direction)
end,
}
defineSpell{
name = "flash_freeze",
uiName = "Flash Freeze",
skill = "ice_magic",
level = 0,
runes = "CFI",
manaCost = 45,
onCast = function(caster, x, y, direction, skill)
for i = x-1,x+1 do
for j = y-1,y-1 do
spawn("frostburst",party.level,i,j,direction)
end
end
for i = x-1,x+1 do
for j = y+1,y+1 do
spawn("frostburst",party.level,i,j,direction)
end
end
for i = x-2,x+2 do
for j = y-2,y-2 do
spawn("frostburst",party.level,i,j,direction)
end
end
for i = x-2,x+2 do
for j = y+2,y+2 do
spawn("frostburst",party.level,i,j,direction)
end
end
for i = x-2,x+2 do
for j = y-1,y+1 do
spawn("frostburst",party.level,i,j,direction)
end
end
spawn("frostburst",party.level,x-2,y,direction)
spawn("frostburst",party.level,x+2,y,direction)
spawn("frostburst",party.level,x-1,y,direction)
spawn("frostburst",party.level,x+1,y,direction)
end,
}
defineSpell{
name = "deadly_vapors",
uiName = "Deadly Vapors",
skill = "earth_magic",
level = 0,
runes = "BCG",
manaCost = 45,
onCast = function(caster, x, y, direction, skill)
for i = x-1,x+1 do
for j = y-1,y-1 do
spawn("poison_cloud",party.level,i,j,direction)
end
end
for i = x-1,x+1 do
for j = y+1,y+1 do
spawn("poison_cloud",party.level,i,j,direction)
end
end
for i = x-2,x+2 do
for j = y-2,y-2 do
spawn("poison_cloud",party.level,i,j,direction)
end
end
for i = x-2,x+2 do
for j = y+2,y+2 do
spawn("poison_cloud",party.level,i,j,direction)
end
end
for i = x-2,x+2 do
for j = y-1,y+1 do
spawn("poison_cloud",party.level,i,j,direction)
end
end
spawn("poison_cloud",party.level,x-2,y,direction)
spawn("poison_cloud",party.level,x+2,y,direction)
spawn("poison_cloud",party.level,x-1,y,direction)
spawn("poison_cloud",party.level,x+1,y,direction)
end,
}
defineSpell{
name = "sheet_lightning",
uiName = "Sheet Lightning",
skill = "air_magic",
level = 0,
runes = "BC",
manaCost = 45,
onCast = function(caster, x, y, direction, skill)
for i = x-1,x+1 do
for j = y-1,y-1 do
spawn("shockburst",party.level,i,j,direction)
end
end
for i = x-1,x+1 do
for j = y+1,y+1 do
spawn("shockburst",party.level,i,j,direction)
end
end
for i = x-2,x+2 do
for j = y-2,y-2 do
spawn("shockburst",party.level,i,j,direction)
end
end
for i = x-2,x+2 do
for j = y+2,y+2 do
spawn("shockburst",party.level,i,j,direction)
end
end
for i = x-2,x+2 do
for j = y-1,y+1 do
spawn("shockburst",party.level,i,j,direction)
end
end
spawn("shockburst",party.level,x-2,y,direction)
spawn("shockburst",party.level,x+2,y,direction)
spawn("shockburst",party.level,x-1,y,direction)
spawn("shockburst",party.level,x+1,y,direction)
end,
}