v2.3.0: fixed missile projecting not working on chars in solid terrain
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user