v2.5.3: added a safety check for spectral necromancer summoning

This commit is contained in:
Evan Debenham
2024-09-25 14:11:48 -04:00
parent facd27b184
commit abc7151349

View File

@@ -152,6 +152,10 @@ public class SpectralNecromancer extends Necromancer {
summoning = firstSummon = false;
Wraith wraith = Wraith.spawnAt(summoningPos, Wraith.class);
if (wraith == null){
spend(TICK);
return;
}
wraith.adjustStats(0);
Dungeon.level.occupyCell( wraith );
((SpectralNecromancerSprite)sprite).finishSummoning();