1
0
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:
Zeno Rogue
2021-05-30 13:48:24 +02:00
parent b63a70f279
commit be5194958e
8 changed files with 9 additions and 9 deletions

View File

@@ -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;