Anonymous

Module:Magic: Difference between revisions

From Melvor Idle
getSpellsProducingItem: Remove erroneous break
(getSpellsUsingItem: Correct too many spells being returned)
(getSpellsProducingItem: Remove erroneous break)
Line 372: Line 372:
             if spell.produces == itemID then
             if spell.produces == itemID then
                 includeSpell = true
                 includeSpell = true
                break
             else
             else
                 includeSpell = ((isBar and spell.produces == 'Bar') or
                 includeSpell = ((isBar and spell.produces == 'Bar') or