v3.0.0: fixed dupes involving trinity and thrown weapons

This commit is contained in:
Evan Debenham
2025-02-07 16:18:40 -05:00
parent 6162338282
commit 707dfba4f6
2 changed files with 2 additions and 2 deletions

View File

@@ -303,7 +303,7 @@ abstract public class MissileWeapon extends Weapon {
decrementDurability();
if (durability > 0){
//attempt to stick the missile weapon to the enemy, just drop it if we can't.
if (sticky && enemy != null && enemy.isActive() && enemy.alignment != Char.Alignment.ALLY){
if (sticky && !spawnedForEffect && enemy != null && enemy.isActive() && enemy.alignment != Char.Alignment.ALLY){
PinCushion p = Buff.affect(enemy, PinCushion.class);
if (p.target == enemy){
p.stick(this);

View File

@@ -134,7 +134,7 @@ public abstract class TippedDart extends Dart {
//attempt to stick the dart to the enemy, just drop it if we can't.
Dart d = new Dart();
Catalog.countUse(getClass());
if (sticky && enemy != null && enemy.isAlive() && enemy.alignment != Char.Alignment.ALLY){
if (sticky && !spawnedForEffect && enemy != null && enemy.isAlive() && enemy.alignment != Char.Alignment.ALLY){
PinCushion p = Buff.affect(enemy, PinCushion.class);
if (p.target == enemy){
p.stick(d);