v3.2.5: fixed pincushion merging keeping existing enchants, not incoming
This commit is contained in:
+4
-3
@@ -38,9 +38,10 @@ public class PinCushion extends Buff {
|
|||||||
private ArrayList<MissileWeapon> items = new ArrayList<>();
|
private ArrayList<MissileWeapon> items = new ArrayList<>();
|
||||||
|
|
||||||
public void stick(MissileWeapon projectile){
|
public void stick(MissileWeapon projectile){
|
||||||
for (Item item : items){
|
for (int i = 0; i < items.size(); i++) {
|
||||||
if (item.isSimilar(projectile)){
|
if (projectile.isSimilar(items.get(i))) {
|
||||||
item.merge(projectile);
|
projectile.merge(items.get(i));
|
||||||
|
items.set(i, projectile);
|
||||||
if (TippedDart.lostDarts > 0) {
|
if (TippedDart.lostDarts > 0) {
|
||||||
Dart d = new Dart();
|
Dart d = new Dart();
|
||||||
d.quantity(TippedDart.lostDarts);
|
d.quantity(TippedDart.lostDarts);
|
||||||
|
|||||||
Reference in New Issue
Block a user