Module:Abilities/card: Difference between revisionsGive feedback
m Added support for 7 alt boxes |
m Missing altbox number checks |
||
| Line 98: | Line 98: | ||
local info1_alt_boxes = get_alt_boxes(hero_key, ability_num, 1) | local info1_alt_boxes = get_alt_boxes(hero_key, ability_num, 1) | ||
if #info1_alt_boxes > | if #info1_alt_boxes > 7 then | ||
error(#info1_alt_boxes .. ' alt boxes found, but only | error(#info1_alt_boxes .. ' alt boxes found, but only 7 are supported. Please update Module:Abilities/card and Template:Ability_card_v2') | ||
end | end | ||
| Line 106: | Line 106: | ||
local info2_alt_boxes = get_alt_boxes(hero_key, ability_num, 2) | local info2_alt_boxes = get_alt_boxes(hero_key, ability_num, 2) | ||
if #info2_alt_boxes > | if #info2_alt_boxes > 7 then | ||
error(#info2_alt_boxes .. ' alt boxes found, but only | error(#info2_alt_boxes .. ' alt boxes found, but only 7 are supported. Please update Module:Abilities/card and Template:Ability_card_v2') | ||
end | end | ||