v3.0.1: fixed an upgrade duplication exploit on curse infused xbow

This commit is contained in:
Evan Debenham
2025-03-05 16:17:22 -05:00
parent 58a0b859da
commit 68955901fd

View File

@@ -227,11 +227,11 @@ public class Dart extends MissileWeapon {
public String info() {
updateCrossbow();
if (bow != null && !bow.isIdentified()){
int level = bow.level();
//temporarily sets the level of the bow to 0 for IDing purposes
bow.level(0);
Crossbow realBow = bow;
//create a temporary bow for IDing purposes
bow = new Crossbow();
String info = super.info();
bow.level(level);
bow = realBow;
return info;
} else {
return super.info();