v3.0.0: fixed errors with flash targeting
This commit is contained in:
@@ -61,7 +61,7 @@ public class Flash extends TargetedClericSpell {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Dungeon.level.solid[target] || !Dungeon.level.mapped[target]
|
||||
if (Dungeon.level.solid[target] || (!Dungeon.level.mapped[target] && !Dungeon.level.visited[target])
|
||||
|| Dungeon.level.distance(hero.pos, target) > 2+hero.pointsInTalent(Talent.FLASH)){
|
||||
GLog.w(Messages.get(this, "invalid_target"));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user