v3.1.0: fixed transmuting mage's staff sometimes cursing it

This commit is contained in:
Evan Debenham
2025-05-16 15:19:57 -04:00
parent 7be250ae9c
commit 4cdf8557f2

View File

@@ -205,6 +205,7 @@ public class ScrollOfTransmutation extends InventoryScroll {
do { do {
n = (Wand) Generator.randomUsingDefaults(Generator.Category.WAND); n = (Wand) Generator.randomUsingDefaults(Generator.Category.WAND);
} while (Challenges.isItemBlocked(n) || n.getClass() == wandClass); } while (Challenges.isItemBlocked(n) || n.getClass() == wandClass);
n.cursed = false;
n.level(0); n.level(0);
n.identify(); n.identify();
staff.imbueWand(n, null); staff.imbueWand(n, null);