Croebh / Avrae-Customizations

A place for me to store and update all of my Avrae aliases and customizations.
GNU General Public License v3.0
28 stars 23 forks source link

[Bug] -loadbattle bug #11

Closed nerdsanddragons closed 4 years ago

nerdsanddragons commented 4 years ago

What alias/snippet is this for? !map

Describe the bug When trying to load a -savebattle that didn't contain any combatants, that said battle won't load because of the line of code: if all([combat().get_combatant(searchCombatant) for searchCombatant in foundCombatants.keys()]):

To Reproduce Steps to reproduce the behavior:

  1. Create a map that contains any map bg, size, options, objects or walls
  2. Make sure there are no combatants in initiative accept combatant that has -attach to it (DM, Map, Lair)
  3. Save battle
  4. Try to load then said battle

Expected behavior Expecting it to load battle even if there were no combatants in the original save

nerdsanddragons commented 4 years ago

In the latest commit of my pr I believe I found a work around for this and commented on the commit what I did to fix it.

nerdsanddragons commented 4 years ago

Closing this issue...fix is in PR I am submitting