Slay the Spire

Slay the Spire

Not enough ratings
MultiDamage Fix
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
4.839 KB
23 Feb @ 10:34pm
1 Change Note ( view )

Subscribe to download
MultiDamage Fix

Description
Fixes a common crash bug that can occur when multi-target attacks are auto-played.
Sets isMultiDamage=true in the constructor of cards with ALL_ENEMY target, to ensure multiDamage gets initialized in AbstractCard.applyPowers.

Error message associated with the bug fixed:
java.lang.NullPointerException: null at com.megacrit.cardcrawl.actions.common.DamageAllEnemiesAction.update(DamageAllEnemiesAction.java:98)