void mdeath::brainblob( monster &z ) { for( monster &critter : g->all_monsters() ) { if(critter.type->in_species( BLOB ) && critter.type->id != mon_blob_brain ) { critter.remove_effect( effect_controlled); } } blobsplit(z); }
void mdeath::brainblob(monster *z) { for( size_t i = 0; i < g->num_zombies(); i++ ) { monster *candidate = &g->zombie( i ); if(candidate->type->in_species( BLOB ) && candidate->type->id != mon_blob_brain ) { candidate->remove_effect("controlled"); } } blobsplit(z); }