mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-16 22:22:30 +00:00
lineofsight:: first commit
This commit is contained in:
@@ -1402,6 +1402,11 @@ EX eItem targetRangedOrb(cell *c, orbAction a) {
|
||||
addMessage(XLAT("You cannot target that far away!"));
|
||||
return itNone;
|
||||
}
|
||||
if(!in_line_of_sight_for_player(c)) {
|
||||
if(!isWeakCheck(a))
|
||||
addMessage(XLAT("You cannot target what you cannot see!"));
|
||||
return itNone;
|
||||
}
|
||||
}
|
||||
|
||||
vector<string> orb_error_messages;
|
||||
|
||||
Reference in New Issue
Block a user