harbingerofme / DebugToolkit

Debugging commands for Risk of Rain 2. Previously known as RoR2Cheats.
https://thunderstore.io/package/IHarbHD/DebugToolkit/
BSD 3-Clause "New" or "Revised" License
14 stars 8 forks source link

Make buff commands work for masterless bodies #153

Closed SChinchi closed 8 months ago

SChinchi commented 8 months ago

Pinging a character only stores its master and for masterless bodies there is no way to retrieve the body reference back. Therefore pinging should store both the master and the body references so it can fallback to the latter for masterless bodies.

I also refactored Buffs.cs in the same manner that Items.cs was recently and fixed the same arg check bug.