mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-05 11:57:58 +00:00
refactored to use isDie if applicable
This commit is contained in:
@@ -544,7 +544,7 @@ EX bool passable_for(eMonster m, cell *w, cell *from, flagtype extra) {
|
||||
if(extra & P_ONPLAYER) {
|
||||
if(isPlayerOn(w)) return true;
|
||||
}
|
||||
if(from && among(from->monst, moAnimatedDie, moAngryDie)) {
|
||||
if(from && isDie(from->monst)) {
|
||||
bool ok = false;
|
||||
for(int i=0; i<from->type; i++) {
|
||||
if(from->move(i) != w) continue;
|
||||
|
Reference in New Issue
Block a user