Editing Module:Abilities/cardGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 82: | Line 82: | ||
local info3_alt_boxes = get_alt_boxes(hero_key, ability_num, 3) | local info3_alt_boxes = get_alt_boxes(hero_key, ability_num, 3) | ||
if #info3_alt_boxes > | if #info3_alt_boxes > 6 then | ||
error(#info3_alt_boxes .. ' alt boxes found, but only | error(#info3_alt_boxes .. ' alt boxes found, but only 6 are supported. Please update Module:Abilities/card and Template:Ability_card_v2') | ||
end | end | ||
| Line 141: | Line 141: | ||
info1_altbox5 = info1_alt_boxes[5], | info1_altbox5 = info1_alt_boxes[5], | ||
info1_altbox6 = info1_alt_boxes[6], | info1_altbox6 = info1_alt_boxes[6], | ||
-- Info section #2 defined in "Info2" attribute | -- Info section #2 defined in "Info2" attribute | ||
| Line 157: | Line 156: | ||
info2_altbox5 = info2_alt_boxes[5], | info2_altbox5 = info2_alt_boxes[5], | ||
info2_altbox6 = info2_alt_boxes[6], | info2_altbox6 = info2_alt_boxes[6], | ||
-- Info section #3 defined in "Info3" attribute | -- Info section #3 defined in "Info3" attribute | ||
hide_info3 = infobox_is_hidden(ability.Info3) and "true" or "false", | hide_info3 = infobox_is_hidden(ability.Info3) and "true" or "false", | ||
| Line 173: | Line 171: | ||
info3_altbox5 = info3_alt_boxes[5], | info3_altbox5 = info3_alt_boxes[5], | ||
info3_altbox6 = info3_alt_boxes[6], | info3_altbox6 = info3_alt_boxes[6], | ||
-- Ability upgrades defined in "Upgrades" attribute | -- Ability upgrades defined in "Upgrades" attribute | ||
upgrade1 = upgrades[1], | upgrade1 = upgrades[1], | ||