Module:Mazunki/Monsters: Difference between revisions

m
nil
m (typo)
m (nil)
Line 56: Line 56:
table.insert(rowTxt, Monsters._getMonsterMaxHit(monster))
table.insert(rowTxt, Monsters._getMonsterMaxHit(monster))
table.insert(rowTxt, monster.attackType)
table.insert(rowTxt, monster.attackType)
table.insert(rowTxt, tostring(not #(monster.specialAttack or {})))
local hasSpecialAttack = false
local hasSpecialAttack = false
local spAtks = {}
local spAtks = {}
local spAtksChance = {}
local spAtksChance = {}
for _, spAtk in pairs(monster.specialAttack) do
for _, spAtk in pairs(monster.specialAttack or {}) do
hasSpecialAttack = true
hasSpecialAttack = true
table.insert(spAtk, spAtk.name)
table.insert(spAtk, spAtk.name)
892

edits