v2.3.0: fixed missile projecting not working on chars in solid terrain

This commit is contained in:
Evan Debenham
2023-11-21 11:15:45 -05:00
parent e58bd78e00
commit 3d7b25e7e5

View File

@@ -164,7 +164,7 @@ abstract public class MissileWeapon extends Weapon {
}
if (projecting
&& (Dungeon.level.passable[dst] || Dungeon.level.avoid[dst])
&& (Dungeon.level.passable[dst] || Dungeon.level.avoid[dst] || Actor.findChar(dst) != null)
&& Dungeon.level.distance(user.pos, dst) <= Math.round(4 * Enchantment.genericProcChanceMultiplier(user))){
return dst;
} else {