1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 15:00:26 +00:00

ambush restriction no longer considers friendly, slow, or multi-tile monsters

This commit is contained in:
Zeno Rogue 2019-07-28 11:11:04 +02:00
parent 9616b76848
commit 42b61e0053

View File

@ -6765,7 +6765,7 @@ int ambushSize(cell *c, eItem what) {
bool restricted = false; bool restricted = false;
for(cell *c2: dcal) { for(cell *c2: dcal) {
if(c2->cpdist > 3) break; if(c2->cpdist > 3) break;
if(c2->monst) restricted = true; if(c2->monst && !isFriendly(c2) && !slowMover(c2) && !isMultitile(c2)) restricted = true;
} }
int qty = items[itHunting]; int qty = items[itHunting];