MTG Plugin Bug: Random Khans of Tarkir boosters generate as Fate Reforged

Started by whiterabbit, January 28, 2016, 11:04:35 AM

Previous topic - Next topic

whiterabbit

Hi everyone,

I've found a bug with the current MTG plugin.  When you generate a random booster for Khans of Tarkir (ktk), Lackey instead generates a random booster for Fate Reforged (frf). 

Generating a random Fate Reforged booster creates the correct, matching (frf) booster.

Any advice on how to fix this would be excellent, thanks!

--- Rabbit

whiterabbit

For anyone else experiencing the same problem, I found the solution.

There's a typo in this file:  plugins/magic/packs/packdefinitions2.xml

Code lines 58-60 show the code for generating a Khans of Tarkit booster as this:

   <packtitle>Khans of Tarkir Booster</packtitle>
   <packkind>Booster</packkind>
   <packcommoncrit><field>Set</field><eval>IS</eval><data>frf</data></packcommoncrit>

When they should be this:

   <packtitle>Khans of Tarkir Booster</packtitle>
   <packkind>Booster</packkind>
   <packcommoncrit><field>Set</field><eval>IS</eval><data>ktk</data></packcommoncrit>

Making the change, saving the file, and reloading the magic plugin fixed the issue for me.

--- Rabbit

AuraDragon

Thanks for pointing that out!  It'll be fixed in the next update.