v2.3.0: fixed missile projecting not working on chars in solid terrain
This commit is contained in:
+1
-1
@@ -164,7 +164,7 @@ abstract public class MissileWeapon extends Weapon {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (projecting
|
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))){
|
&& Dungeon.level.distance(user.pos, dst) <= Math.round(4 * Enchantment.genericProcChanceMultiplier(user))){
|
||||||
return dst;
|
return dst;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user