v3.3.0: quest tester area is no longer enterable during ascent

This commit is contained in:
Evan Debenham
2025-12-02 19:33:41 -05:00
committed by Evan Debenham
parent 0e58334df6
commit d92ac9e444
@@ -24,6 +24,7 @@ package com.shatteredpixel.shatteredpixeldungeon.levels;
import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.AscensionChallenge;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.Imp;
@@ -145,6 +146,10 @@ public class CityLevel extends RegularLevel {
public boolean activateTransition(Hero hero, LevelTransition transition) {
if (transition.type == LevelTransition.Type.BRANCH_EXIT) {
if (hero.buff(AscensionChallenge.class) != null){
return false;
}
Game.runOnRenderThread(new Callback() {
@Override
public void call() {