v0.3.5: fixed plants hanging around when they shouldn't on tengu's level.

This commit is contained in:
Evan Debenham 2016-03-26 18:45:45 -04:00
parent c632b016f8
commit 2378f45fbb

View File

@ -36,6 +36,7 @@ import com.shatteredpixel.shatteredpixeldungeon.levels.painters.MazePainter;
import com.shatteredpixel.shatteredpixeldungeon.levels.traps.SpearTrap;
import com.shatteredpixel.shatteredpixeldungeon.levels.traps.Trap;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.plants.Plant;
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
import com.shatteredpixel.shatteredpixeldungeon.ui.CustomTileVisual;
import com.shatteredpixel.shatteredpixeldungeon.ui.HealthIndicator;
@ -265,6 +266,12 @@ public class PrisonBossLevel extends Level {
mob.destroy();
}
}
for (Plant plant : plants.values()){
if (safeArea == null || !safeArea.inside(plant.pos)){
plants.remove(plant.pos);
plant.sprite.kill();
}
}
}
public void progress(){