Skip to content

Commit

Permalink
Merge pull request #226 from WhiteCloud0123/develop
Browse files Browse the repository at this point in the history
ZOMBIE_FUSE: 不要让身为宠物的放荡吞噬者融合身为宠物的丧尸
  • Loading branch information
WhiteCloud0123 authored Jul 31, 2023
2 parents 77e03e8 + 8d8e05d commit d7db9d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/monattack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6041,6 +6041,13 @@ bool mattack::zombie_fuse( monster *z )
effect_grown_of_fuse ).get_max_intensity() ) ) ) {
return false;
}

if( z->has_effect(effect_pet) && critter->has_effect(effect_pet)) {

return false;

}

add_msg_if_player_sees( *z, _( "The %1$s fuses with the %2$s." ),
critter->name(), z->name() );
z->moves -= 200;
Expand Down

0 comments on commit d7db9d0

Please sign in to comment.