v2.5.3: added a safety check for spectral necromancer summoning
This commit is contained in:
+4
@@ -152,6 +152,10 @@ public class SpectralNecromancer extends Necromancer {
|
|||||||
summoning = firstSummon = false;
|
summoning = firstSummon = false;
|
||||||
|
|
||||||
Wraith wraith = Wraith.spawnAt(summoningPos, Wraith.class);
|
Wraith wraith = Wraith.spawnAt(summoningPos, Wraith.class);
|
||||||
|
if (wraith == null){
|
||||||
|
spend(TICK);
|
||||||
|
return;
|
||||||
|
}
|
||||||
wraith.adjustStats(0);
|
wraith.adjustStats(0);
|
||||||
Dungeon.level.occupyCell( wraith );
|
Dungeon.level.occupyCell( wraith );
|
||||||
((SpectralNecromancerSprite)sprite).finishSummoning();
|
((SpectralNecromancerSprite)sprite).finishSummoning();
|
||||||
|
|||||||
Reference in New Issue
Block a user