v3.0.1: fixed an upgrade duplication exploit on curse infused xbow
This commit is contained in:
+4
-4
@@ -227,11 +227,11 @@ public class Dart extends MissileWeapon {
|
|||||||
public String info() {
|
public String info() {
|
||||||
updateCrossbow();
|
updateCrossbow();
|
||||||
if (bow != null && !bow.isIdentified()){
|
if (bow != null && !bow.isIdentified()){
|
||||||
int level = bow.level();
|
Crossbow realBow = bow;
|
||||||
//temporarily sets the level of the bow to 0 for IDing purposes
|
//create a temporary bow for IDing purposes
|
||||||
bow.level(0);
|
bow = new Crossbow();
|
||||||
String info = super.info();
|
String info = super.info();
|
||||||
bow.level(level);
|
bow = realBow;
|
||||||
return info;
|
return info;
|
||||||
} else {
|
} else {
|
||||||
return super.info();
|
return super.info();
|
||||||
|
|||||||
Reference in New Issue
Block a user