MedievaLands Forums

bug with casting medic on self

Back to Forum
Hotspur

casting medic on self followed by any other skill or cast on self logs you out with an error

ZaneDubya

Hail Hotspur! Thanks for the bug report. I've included a fix for this issue in the latest hotfix.

This was caused by an off by one error while iterating through the current list of buffs/debuffs on your character. Medic, after all, removes debuffs that have certain status effect flags. Thus, the code for medic checks char.Buff[0], proceeds to char.Buff[1], and finally ends with a check to char.Buff[char.Buff.Length]. Which, this list being zero-indexed, wouldn't exist.

Whoops.

1 of 1


Terms of Service - Privacy Policy - Rules of Conduct

Made with love in MPLS. Write to me at hello@medievalands.com.