v3.2.0: fixed projecting bow stacking on itself with shared enchants

This commit is contained in:
Evan Debenham
2025-07-28 13:04:33 -04:00
parent 1b697e6baa
commit 0ebd754334

View File

@@ -193,7 +193,7 @@ abstract public class MissileWeapon extends Weapon {
if (hasEnchant(Projecting.class, user)){
projecting += 4;
}
if (Random.Int(3) < user.pointsInTalent(Talent.SHARED_ENCHANTMENT)){
if ((!(this instanceof SpiritBow.SpiritArrow) && Random.Int(3) < user.pointsInTalent(Talent.SHARED_ENCHANTMENT))){
SpiritBow bow = Dungeon.hero.belongings.getItem(SpiritBow.class);
if (bow != null && bow.hasEnchant(Projecting.class, user)) {
projecting += 4;