Skip to content

Commit

Permalink
Avoid fusing with the last critter if no proper critter is found (#45886
Browse files Browse the repository at this point in the history
)

* Avoid fusing with the last critter if no proper critter is found
fixes #36348
  • Loading branch information
l29ah authored Dec 8, 2020
1 parent 949ecdf commit e3a9cfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/monattack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5763,6 +5763,7 @@ bool mattack::zombie_fuse( monster *z )
&& critter != z && critter->get_size() <= z->get_size() ) {
break;
}
critter = nullptr;
}

if( critter == nullptr || ( z->has_effect( effect_grown_of_fuse ) &&
Expand Down

0 comments on commit e3a9cfb

Please sign in to comment.