Slay the Spire

Slay the Spire

Fiend Mod
Game-Breaking Bug w/ Mutilation
Found an error that causes the game to crash when casting Mutilation. Do note that I also have a relic, which prevents damage from being done, though I fail to see how this would cause the error shown below.

23:22:45.860 INFO ThMod.ThMod> ThMod : Card used : Fiend:FiendMutilation ; cost : 2
Exception: java.lang.ArithmeticException: / by zero
23:22:45.865 ERROR core.CardCrawlGame> Exception caught
java.lang.ArithmeticException: / by zero
at fiendmod.cards.FiendMutilation.use(FiendMutilation.java:59) ~[FiendMod.jar:?]
at com.evacipated.cardcrawl.mod.hubris.patches.ZylophonePatch$MultiUse.use(ZylophonePatch.java:51) ~[Hubris.jar:?]
at com.megacrit.cardcrawl.characters.AbstractPlayer.useCard(AbstractPlayer.java:1594) ~[?:?]
at com.megacrit.cardcrawl.actions.GameActionManager.getNextAction(GameActionManager.java:297) ~[?:?]
at com.megacrit.cardcrawl.actions.GameActionManager.update(GameActionManager.java:151) ~[?:?]
at com.megacrit.cardcrawl.rooms.AbstractRoom.update(AbstractRoom.java:279) ~[?:?]
at com.megacrit.cardcrawl.rooms.EventRoom.update(EventRoom.java:53) ~[desktop-1.0.jar:?]
at com.megacrit.cardcrawl.dungeons.AbstractDungeon.update(AbstractDungeon.java:2552) ~[?:?]
at com.megacrit.cardcrawl.core.CardCrawlGame.update(CardCrawlGame.java:878) ~[?:?]
at com.megacrit.cardcrawl.core.CardCrawlGame.render(CardCrawlGame.java:429) [?:?]
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:225) [?:?]
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126) [desktop-1.0.jar:?]
Controllers: removed manager for application, 0 managers active
Game closed.

If you could take a look at this, I'd greatly appreciate it! Let me know if you need anything else!
< >
Showing 1-1 of 1 comments
Towerdepths 2 Apr, 2019 @ 4:38pm 
Looks like the Rumiabox mod's Secret Record relic enhances the effects of cards with special values by 1. Apparently, this includes Mutilation, which is what causes the divide by zero error thanks to Secret Record 'buffing' Mutilation down to 1 flesh for every *0* HP lost when used. Sorry for any confusion!
< >
Showing 1-1 of 1 comments
Per page: 1530 50