mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	ambush restriction no longer considers friendly, slow, or multi-tile monsters
This commit is contained in:
		
							
								
								
									
										2
									
								
								game.cpp
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								game.cpp
									
									
									
									
									
								
							| @@ -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]; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue