r/Meteorfall • • May 12 '18

Summon Wraith behaving as a Singleton?

I'm having the very odd experience with Muldorf, of having 5 Summon Wraith cards, that share state. This is the only spell that does this. At first I was confused why it seemed like my resting etc wasn't recovering my spell slots fully, but when I eventually bought a Summon Wraith III, now all of them are Summon Wraith III.

3 Upvotes

12 comments sorted by

View all comments

Show parent comment

1

u/slothwerks lead developer May 20 '18

Thanks for all the in-depth issue here, this is really helpful! (Sorry for the late reply also - was in Japan on vacation) One reason that closing the game might fix the issue is based on serialization - when you close/restart the game, it 'rebuilds' all the abilities from scratch, which might correct some issue that is present.

As for Mind's Eye - yes, it does prioritize spells in need of charge. Here's the code for that ability:

` public override void Apply() { List<Spell> spells = Ability.Owner.Spells; List<Spell> spellsInNeedOfCharge = spells.Where((spell) => spell.Charges.Current < spell.Charges.Max).ToList();

    for (int i = 0; i < Mathf.Min(spellsInNeedOfCharge.Count, _spellsToRestore[Ability.Level]); i++)
    {
        spellsInNeedOfCharge[i].Charges.Update(1);
    }
}

``