mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-11-04 15:53:00 +00:00 
			
		
		
		
	fixed Dragon doublecounting
This commit is contained in:
		@@ -438,6 +438,7 @@ EX void killMonster(cell *c, eMonster who, flagtype deathflags IS(0)) {
 | 
				
			|||||||
    c->stuntime = 1;
 | 
					    c->stuntime = 1;
 | 
				
			||||||
    cell *head = dragon::findhead(c);
 | 
					    cell *head = dragon::findhead(c);
 | 
				
			||||||
    if(dragon::totalhp(head) == 0) dragon::kill(head, who);
 | 
					    if(dragon::totalhp(head) == 0) dragon::kill(head, who);
 | 
				
			||||||
 | 
					    return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  if(isWorm(c) && m != moTentacleGhost) return;
 | 
					  if(isWorm(c) && m != moTentacleGhost) return;
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user